/*
 * HomeScreen.java
 *
 * Created on January 29, 2009, 12:53 PM
 */

package org.dinnermate.gui;

import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.Date;
import java.util.LinkedList;
import java.awt.Color;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;
import java.awt.Cursor;

import java.text.SimpleDateFormat;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.table.DefaultTableCellRenderer;

import java.util.Locale;
import org.dinnermate.jcalendar.*;

import net.java.ao.EntityManager;
import net.java.ao.Query;

import org.dinnermate.db.DBManager;
import org.dinnermate.food.Ingredient;
import org.dinnermate.food.MenuItemIngredient;
import org.dinnermate.gui.layout.controller.EditorController;
import org.dinnermate.gui.trackers.MenuIncomeTracker;
import org.dinnermate.gui.trackers.NetIncomeTracker;
import org.dinnermate.gui.trackers.StaffPaymentTracker;
import org.dinnermate.gui.trackers.StockPaymentTracker;
import org.dinnermate.gui.trackers.TrackIngredients;
import org.dinnermate.menu.ItemCategory;
import org.dinnermate.menu.MenuItem;
import org.dinnermate.validation.PriceValidator;
import org.dinnermate.validation.TextBoxValidator;
import org.dinnermate.waiter.SeatManager;
import org.dinnermate.waiter.ServeUpdater;


import org.dinnermate.reservation.Reservation;
import org.dinnermate.reservation.ReservationLogic;
import org.dinnermate.staff.Position;
import org.dinnermate.staff.Shift;
import org.dinnermate.staff.ShiftType;
import org.dinnermate.staff.StaffMember;

/**
 *
 * @author dturko
 */
public class HomeScreen extends javax.swing.JFrame
{
	EntityManager em;
	DefaultListModel jList3Model;
	DefaultListModel jList4Model;
	DefaultListModel jList5Model;
	DefaultListModel jList6Model;
	DefaultListModel jList7Model;
	LinkedList<TrackIngredients> mapIngredients;
	LinkedList<TrackIngredients> mapEditIngredients;
	TextBoxValidator tbv = new TextBoxValidator();

    ScheduleManager sm = new ScheduleManager();
    Shift[] shifts = {};
    StaffMember[] staff = {};
    StaffMember[] shiftStaff = {};

    Cursor moveCursor = new Cursor(Cursor.MOVE_CURSOR);
    Cursor defCursor = new Cursor(Cursor.DEFAULT_CURSOR);
  
    JCalendar calendar1 = new JCalendar();
    JCalendar calendar2 = new JCalendar();

    javax.swing.JList lastBin;
    
    SeatManager seatMgr = new SeatManager();
    ServeUpdater serveUpdater;

	/**
	 * Creates new form HomeScreen
	 *
	 * @throws SQLException
	 */
	public HomeScreen()
	{
		em = DBManager.getEntityManager();
		serveUpdater = new ServeUpdater(em);
		tbv = new TextBoxValidator();
		mapIngredients = new LinkedList();
		mapEditIngredients = new LinkedList();
		initComponents();
	}

	/**
	 * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code.
	 * The content of this method is always regenerated by the Form Editor.
	 *
	 * @throws SQLException
	 */
	@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        tabSet = new javax.swing.JTabbedPane();
        panelPlan = new javax.swing.JPanel();
        panelStaff = new javax.swing.JPanel();
        jSeparator2 = new javax.swing.JSeparator();
        lblStaff = new javax.swing.JLabel();
        StaffPanel = new javax.swing.JLayeredPane();
        frmViewStaffRoster = new javax.swing.JInternalFrame();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblStaffRoster = new javax.swing.JTable();
        lblViewStaffRoster = new javax.swing.JLabel();
        lblCreateNewStaff = new javax.swing.JLabel();
        lblEditCurrentStaff = new javax.swing.JLabel();
        frmEditCurrentStaff = new javax.swing.JInternalFrame();
        jLabel14 = new javax.swing.JLabel();
        cmbEditStaffPos = new javax.swing.JComboBox();
        jLabel15 = new javax.swing.JLabel();
        txtEditStaffDollars = new javax.swing.JTextField();
        txtEditStaffCents = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        txtEditStaffAddress = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        txtEditStaffPhone = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        txtEditStaffEmail = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        txtEditStaffNotes = new javax.swing.JTextField();
        btnDeleteStaff = new javax.swing.JButton();
        btnSaveStaff = new javax.swing.JButton();
        jLabel12 = new javax.swing.JLabel();
        cmbStaff = new javax.swing.JComboBox();
        jSeparator9 = new javax.swing.JSeparator();
        frmCreateNewStaff = new javax.swing.JInternalFrame();
        jLabel41 = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        txtNewStaffFirstName = new javax.swing.JTextField();
        txtNewStaffLastName = new javax.swing.JTextField();
        jLabel43 = new javax.swing.JLabel();
        cmbNewStaffPos = new javax.swing.JComboBox();
        jLabel44 = new javax.swing.JLabel();
        txtNewStaffDollars = new javax.swing.JTextField();
        txtNewStaffCents = new javax.swing.JTextField();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        txtNewStaffAddress = new javax.swing.JTextField();
        jLabel48 = new javax.swing.JLabel();
        txtNewStaffPhone = new javax.swing.JTextField();
        jLabel49 = new javax.swing.JLabel();
        txtNewStaffEmail = new javax.swing.JTextField();
        jLabel50 = new javax.swing.JLabel();
        txtNewStaffNotes = new javax.swing.JTextField();
        btnStaffClear = new javax.swing.JButton();
        btnCreateStaff = new javax.swing.JButton();
        panelSchedule = new javax.swing.JPanel();
        lblPlan1 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jList2 = new javax.swing.JList();
        jScrollPane11 = new javax.swing.JScrollPane();
        jList8 = new javax.swing.JList();
        jScrollPane12 = new javax.swing.JScrollPane();
        jList9 = new javax.swing.JList();
        jScrollPane13 = new javax.swing.JScrollPane();
        jList10 = new javax.swing.JList();
        calendar = new javax.swing.JPanel();
        day = new javax.swing.JPanel();
        number = new javax.swing.JLabel();
        am = new javax.swing.JLabel();
        pm = new javax.swing.JLabel();
        day1 = new javax.swing.JPanel();
        number1 = new javax.swing.JLabel();
        am1 = new javax.swing.JLabel();
        pm1 = new javax.swing.JLabel();
        day2 = new javax.swing.JPanel();
        number2 = new javax.swing.JLabel();
        am2 = new javax.swing.JLabel();
        pm2 = new javax.swing.JLabel();
        day3 = new javax.swing.JPanel();
        number3 = new javax.swing.JLabel();
        am3 = new javax.swing.JLabel();
        pm3 = new javax.swing.JLabel();
        day4 = new javax.swing.JPanel();
        number4 = new javax.swing.JLabel();
        am4 = new javax.swing.JLabel();
        pm4 = new javax.swing.JLabel();
        day5 = new javax.swing.JPanel();
        number5 = new javax.swing.JLabel();
        am5 = new javax.swing.JLabel();
        pm5 = new javax.swing.JLabel();
        day6 = new javax.swing.JPanel();
        number6 = new javax.swing.JLabel();
        am6 = new javax.swing.JLabel();
        pm6 = new javax.swing.JLabel();
        day7 = new javax.swing.JPanel();
        number7 = new javax.swing.JLabel();
        am7 = new javax.swing.JLabel();
        pm7 = new javax.swing.JLabel();
        day8 = new javax.swing.JPanel();
        number8 = new javax.swing.JLabel();
        am8 = new javax.swing.JLabel();
        pm8 = new javax.swing.JLabel();
        day9 = new javax.swing.JPanel();
        number9 = new javax.swing.JLabel();
        am9 = new javax.swing.JLabel();
        pm9 = new javax.swing.JLabel();
        day10 = new javax.swing.JPanel();
        number10 = new javax.swing.JLabel();
        am10 = new javax.swing.JLabel();
        pm10 = new javax.swing.JLabel();
        day11 = new javax.swing.JPanel();
        number11 = new javax.swing.JLabel();
        am11 = new javax.swing.JLabel();
        pm11 = new javax.swing.JLabel();
        day12 = new javax.swing.JPanel();
        number12 = new javax.swing.JLabel();
        am12 = new javax.swing.JLabel();
        pm12 = new javax.swing.JLabel();
        day13 = new javax.swing.JPanel();
        number13 = new javax.swing.JLabel();
        am13 = new javax.swing.JLabel();
        pm13 = new javax.swing.JLabel();
        day14 = new javax.swing.JPanel();
        number14 = new javax.swing.JLabel();
        am14 = new javax.swing.JLabel();
        pm14 = new javax.swing.JLabel();
        day15 = new javax.swing.JPanel();
        number15 = new javax.swing.JLabel();
        am15 = new javax.swing.JLabel();
        pm15 = new javax.swing.JLabel();
        day16 = new javax.swing.JPanel();
        number16 = new javax.swing.JLabel();
        am16 = new javax.swing.JLabel();
        pm16 = new javax.swing.JLabel();
        day17 = new javax.swing.JPanel();
        number17 = new javax.swing.JLabel();
        am17 = new javax.swing.JLabel();
        pm17 = new javax.swing.JLabel();
        day18 = new javax.swing.JPanel();
        number18 = new javax.swing.JLabel();
        am18 = new javax.swing.JLabel();
        pm18 = new javax.swing.JLabel();
        day19 = new javax.swing.JPanel();
        number19 = new javax.swing.JLabel();
        am19 = new javax.swing.JLabel();
        pm19 = new javax.swing.JLabel();
        day20 = new javax.swing.JPanel();
        number20 = new javax.swing.JLabel();
        am20 = new javax.swing.JLabel();
        pm20 = new javax.swing.JLabel();
        day22 = new javax.swing.JPanel();
        number22 = new javax.swing.JLabel();
        am22 = new javax.swing.JLabel();
        pm22 = new javax.swing.JLabel();
        day23 = new javax.swing.JPanel();
        number23 = new javax.swing.JLabel();
        am23 = new javax.swing.JLabel();
        pm23 = new javax.swing.JLabel();
        day24 = new javax.swing.JPanel();
        number24 = new javax.swing.JLabel();
        am24 = new javax.swing.JLabel();
        pm24 = new javax.swing.JLabel();
        day25 = new javax.swing.JPanel();
        number25 = new javax.swing.JLabel();
        am25 = new javax.swing.JLabel();
        pm25 = new javax.swing.JLabel();
        day26 = new javax.swing.JPanel();
        number26 = new javax.swing.JLabel();
        am26 = new javax.swing.JLabel();
        pm26 = new javax.swing.JLabel();
        day27 = new javax.swing.JPanel();
        number27 = new javax.swing.JLabel();
        am27 = new javax.swing.JLabel();
        pm27 = new javax.swing.JLabel();
        day28 = new javax.swing.JPanel();
        number28 = new javax.swing.JLabel();
        am28 = new javax.swing.JLabel();
        pm28 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jComboBox2 = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        cmdBuildCalendar1 = new javax.swing.JButton();
        cmdBuildCalendar2 = new javax.swing.JButton();
        jScrollPane14 = new javax.swing.JScrollPane();
        lstDelete = new javax.swing.JList();
        panelStock = new javax.swing.JPanel();
        lblPlan2 = new javax.swing.JLabel();
        jSeparator4 = new javax.swing.JSeparator();
        StockPanel = new javax.swing.JLayeredPane();
        frmViewInventoryList = new javax.swing.JInternalFrame();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        lblViewInventoryList = new javax.swing.JLabel();
        lblNewStockEntry = new javax.swing.JLabel();
        lblAdjustStock = new javax.swing.JLabel();
        frmEditStockEntry = new javax.swing.JInternalFrame();
        jLabel22 = new javax.swing.JLabel();
        jComboBox4 = new javax.swing.JComboBox();
        jLabel23 = new javax.swing.JLabel();
        jTextField17 = new javax.swing.JTextField();
        jLabel29 = new javax.swing.JLabel();
        jTextField22 = new javax.swing.JTextField();
        jButton7 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jLabel13 = new javax.swing.JLabel();
        jComboBox5 = new javax.swing.JComboBox();
        jSeparator10 = new javax.swing.JSeparator();
        jLabel24 = new javax.swing.JLabel();
        jLabel61 = new javax.swing.JLabel();
        jTextField47 = new javax.swing.JTextField();
        jLabel62 = new javax.swing.JLabel();
        jTextField48 = new javax.swing.JTextField();
        lblEditStockEntry = new javax.swing.JLabel();
        frmNewStockEntry = new javax.swing.JInternalFrame();
        jLabel25 = new javax.swing.JLabel();
        jComboBox7 = new javax.swing.JComboBox();
        jLabel26 = new javax.swing.JLabel();
        jTextField18 = new javax.swing.JTextField();
        jLabel30 = new javax.swing.JLabel();
        jTextField23 = new javax.swing.JTextField();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jLabel28 = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        jTextField49 = new javax.swing.JTextField();
        jLabel64 = new javax.swing.JLabel();
        jTextField50 = new javax.swing.JTextField();
        jLabel31 = new javax.swing.JLabel();
        jTextField24 = new javax.swing.JTextField();
        frmAdjustStock = new javax.swing.JInternalFrame();
        jScrollPane3 = new javax.swing.JScrollPane();
        jList1 = new javax.swing.JList();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jComboBox3 = new javax.swing.JComboBox();
        panelMenu = new javax.swing.JPanel();
        lblPlan3 = new javax.swing.JLabel();
        jSeparator5 = new javax.swing.JSeparator();
        StockPanel1 = new javax.swing.JLayeredPane();
        lblViewInventoryList1 = new javax.swing.JLabel();
        lblAddMenuItem = new javax.swing.JLabel();
        lblEditMenuItem = new javax.swing.JLabel();
        lblEditStockEntry1 = new javax.swing.JLabel();
        frmNewMenuItem = new javax.swing.JInternalFrame();
        addCategoryTextField = new javax.swing.JTextField();
        jLabel53 = new javax.swing.JLabel();
        jComboBox10 = new javax.swing.JComboBox();
        jLabel55 = new javax.swing.JLabel();
        jTextField26 = new javax.swing.JTextField();
        jButton15 = new javax.swing.JButton();
        jButton16 = new javax.swing.JButton();
        jLabel56 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        jTextField53 = new javax.swing.JTextField();
        jLabel68 = new javax.swing.JLabel();
        jTextField54 = new javax.swing.JTextField();
        jLabel57 = new javax.swing.JLabel();
        jTextField27 = new javax.swing.JTextField();
        jSeparator12 = new javax.swing.JSeparator();
        jLabel73 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jList3 = new javax.swing.JList();
        jScrollPane7 = new javax.swing.JScrollPane();
        jList4 = new javax.swing.JList();
        jLabel74 = new javax.swing.JLabel();
        jLabel75 = new javax.swing.JLabel();
        jButton5 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jTextField55 = new javax.swing.JTextField();
        jLabel76 = new javax.swing.JLabel();
        frmEditMenuItem = new javax.swing.JInternalFrame();
        jLabel54 = new javax.swing.JLabel();
        jComboBox11 = new javax.swing.JComboBox();
        jLabel65 = new javax.swing.JLabel();
        jTextField28 = new javax.swing.JTextField();
        jButton17 = new javax.swing.JButton();
        jButton18 = new javax.swing.JButton();
        jLabel66 = new javax.swing.JLabel();
        jLabel77 = new javax.swing.JLabel();
        jTextField56 = new javax.swing.JTextField();
        jLabel78 = new javax.swing.JLabel();
        jTextField57 = new javax.swing.JTextField();
        jSeparator13 = new javax.swing.JSeparator();
        jLabel80 = new javax.swing.JLabel();
        jScrollPane8 = new javax.swing.JScrollPane();
        jList5 = new javax.swing.JList();
        jScrollPane9 = new javax.swing.JScrollPane();
        jList6 = new javax.swing.JList();
        jLabel81 = new javax.swing.JLabel();
        jLabel82 = new javax.swing.JLabel();
        jButton13 = new javax.swing.JButton();
        jButton14 = new javax.swing.JButton();
        jTextField58 = new javax.swing.JTextField();
        jLabel83 = new javax.swing.JLabel();
        jLabel79 = new javax.swing.JLabel();
        jComboBox12 = new javax.swing.JComboBox();
        jSeparator14 = new javax.swing.JSeparator();
        frmMenuCategories = new javax.swing.JInternalFrame();
        jButton19 = new javax.swing.JButton();
        jLabel86 = new javax.swing.JLabel();
        jScrollPane10 = new javax.swing.JScrollPane();
        jList7 = new javax.swing.JList();
        jButton20 = new javax.swing.JButton();
        jButton21 = new javax.swing.JButton();
        jButton22 = new javax.swing.JButton();
        frmViewMenu = new javax.swing.JInternalFrame();
        jScrollPane14 = new javax.swing.JScrollPane();
        jTextPane1 = new javax.swing.JTextPane();
        panelReserve = new javax.swing.JPanel();
        lblPlan4 = new javax.swing.JLabel();
        jSeparator6 = new javax.swing.JSeparator();
        ReservePanel = new javax.swing.JLayeredPane();
        lblNewReservation = new javax.swing.JLabel();
        lblEditReservation = new javax.swing.JLabel();
        lblViewReservations = new javax.swing.JLabel();
        frmNewReservation = new javax.swing.JInternalFrame();
        jLabelResName = new javax.swing.JLabel();
        jTextFieldResName = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jTextFieldNewResDate = new javax.swing.JTextField();
        jTextFieldNewResTime = new javax.swing.JTextField();
        jTextFieldNumPeople = new javax.swing.JTextField();
        jTextFieldResNotes = new javax.swing.JTextField();
        jButtonClearNewRes = new javax.swing.JButton();
        jButtonFindTable = new javax.swing.JButton();
        jLabelResName1 = new javax.swing.JLabel();
        jTextFieldResName1 = new javax.swing.JTextField();
        frmEditReservation = new javax.swing.JInternalFrame();
        jLabelEditResName = new javax.swing.JLabel();
        jLabelEditResDate = new javax.swing.JLabel();
        jLabelEditResTime = new javax.swing.JLabel();
        jLabelEditResNumPeople = new javax.swing.JLabel();
        jLabelEditResNotes = new javax.swing.JLabel();
        jTextFieldEditResDate = new javax.swing.JTextField();
        jTextFieldEditResTime = new javax.swing.JTextField();
        jTextFieldEditResNumPeople = new javax.swing.JTextField();
        jTextFieldEditResNotes = new javax.swing.JTextField();
        jButtonEditResDelete = new javax.swing.JButton();
        jButtonEditResSaveChanges = new javax.swing.JButton();
        jComboBoxResName = new javax.swing.JComboBox();
        jLabelEditResName1 = new javax.swing.JLabel();
        jTextFieldEditResNotes1 = new javax.swing.JTextField();
        frmViewReservations = new javax.swing.JInternalFrame();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        panelServe = new javax.swing.JPanel();
        lblPlan5 = new javax.swing.JLabel();
        jSeparator7 = new javax.swing.JSeparator();
        ServePanel = new javax.swing.JLayeredPane();
        cmdOrder = new javax.swing.JLabel();
        cmdSeat = new javax.swing.JLabel();
        lblDate = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        lblTime = new javax.swing.JLabel();
        jSeparator11 = new javax.swing.JSeparator();
        spnWaiterList = new javax.swing.JComboBox();
        lblWaiterSeats = new javax.swing.JLabel();
        lblWaiterName = new javax.swing.JLabel();
        lblWaiterTime = new javax.swing.JLabel();
        lblWaiterTables = new javax.swing.JLabel();
        jSeparator15 = new javax.swing.JSeparator();
        cmdOrder1 = new javax.swing.JLabel();
        cmdOrder2 = new javax.swing.JLabel();
        cmdOrder3 = new javax.swing.JLabel();
        pnlSeat = new javax.swing.JPanel();
        jScrollPane15 = new javax.swing.JScrollPane();
        lstOrderItems = new javax.swing.JList();
        panelReview = new javax.swing.JPanel();
        lblPlan6 = new javax.swing.JLabel();
        jSeparator8 = new javax.swing.JSeparator();
        reviewPanel = new javax.swing.JLayeredPane();
        lblStaffExpenses = new javax.swing.JLabel();
        lblStockExpenses = new javax.swing.JLabel();
        lblFoodIncome = new javax.swing.JLabel();
        lblNetIncome = new javax.swing.JLabel();
        frmStaffExpenses = new javax.swing.JInternalFrame();
        jScrollPane15 = new javax.swing.JScrollPane();
        tblStaffExpenses = new javax.swing.JTable();
        frmStockExpenses = new javax.swing.JInternalFrame();
        jScrollPane18 = new javax.swing.JScrollPane();
        tblStockExpenses = new javax.swing.JTable();
        frmFoodIncome = new javax.swing.JInternalFrame();
        jScrollPane16 = new javax.swing.JScrollPane();
        tblFoodIncome = new javax.swing.JTable();
        frmNetIncome = new javax.swing.JInternalFrame();
        jScrollPane17 = new javax.swing.JScrollPane();
        tblNetIncome = new javax.swing.JTable();
        jLabel1 = new javax.swing.JLabel();
        toolbar = new javax.swing.JToolBar();
        lblStatus = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("HOME :: DinnerMate");
        setBackground(new java.awt.Color(255, 255, 204));
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setResizable(false);

        tabSet.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);
        tabSet.setFont(new java.awt.Font("Lucida Sans", 0, 11));
        tabSet.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                homeScreenUpdate(evt);
            }

			private void homeScreenUpdate( MouseEvent evt )
			{
				if (tabSet.getSelectedIndex()==2) {
					jComboBox1.setSelectedIndex(2);
					jComboBox2.setSelectedIndex(1);
					buildCalendar(jComboBox1.getSelectedIndex(),jComboBox2.getSelectedIndex()+2008);
				    populateStaff();
				}
				if (tabSet.getSelectedIndex()==6) {
					serveUpdater.updateDateTime(lblDate, lblTime);
					serveUpdater.updateWaiterList(spnWaiterList);
					serveUpdater.initServe(spnWaiterList);
					serveUpdater.updateMenu(lstOrderItems);
				}
				
			}
        });
        tabSet.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                tabSetMouseMoved(evt);
            }
        });

        panelPlan.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelPlanMouseMoved(evt);
            }
        });

        javax.swing.GroupLayout panelPlanLayout = new javax.swing.GroupLayout(panelPlan);
        panelPlan.setLayout(panelPlanLayout);
        panelPlanLayout.setHorizontalGroup(
            panelPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 906, Short.MAX_VALUE)
        );
        panelPlanLayout.setVerticalGroup(
            panelPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 646, Short.MAX_VALUE)
        );

        tabSet.addTab("PLAN", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/cinema-32x32.png")), panelPlan); // NOI18N

        panelStaff.setBackground(new java.awt.Color(229, 247, 235));

        lblStaff.setFont(new java.awt.Font("BankGothic Lt BT", 0, 48));
        lblStaff.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-48x48.png"))); // NOI18N
        lblStaff.setText("Staff");

        StaffPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        frmViewStaffRoster.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmViewStaffRoster.setClosable(true);
        frmViewStaffRoster.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmViewStaffRoster.setTitle("VIEW STAFF ROSTER");
        frmViewStaffRoster.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N

        jButton1.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton1.setText("Clear Form");

        jButton2.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton2.setText("Save Staff");

        tblStaffRoster.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tblStaffRoster);

        javax.swing.GroupLayout frmViewStaffRosterLayout = new javax.swing.GroupLayout(frmViewStaffRoster.getContentPane());
        frmViewStaffRoster.getContentPane().setLayout(frmViewStaffRosterLayout);
        frmViewStaffRosterLayout.setHorizontalGroup(
            frmViewStaffRosterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmViewStaffRosterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmViewStaffRosterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 596, Short.MAX_VALUE)
                    .addGroup(frmViewStaffRosterLayout.createSequentialGroup()
                        .addComponent(jButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 402, Short.MAX_VALUE)
                        .addComponent(jButton2)))
                .addContainerGap())
        );
        frmViewStaffRosterLayout.setVerticalGroup(
            frmViewStaffRosterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmViewStaffRosterLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(83, 83, 83)
                .addGroup(frmViewStaffRosterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        frmViewStaffRoster.setBounds(50, 20, 800, 310);
        StaffPanel.add(frmViewStaffRoster, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblViewStaffRoster.setBackground(new java.awt.Color(255, 255, 255));
        lblViewStaffRoster.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblViewStaffRoster.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblViewStaffRoster.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N
        lblViewStaffRoster.setText("View Staff Roster");
        lblViewStaffRoster.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblViewStaffRoster.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblViewStaffRosterMouseClicked(evt);
            }
        });
        lblViewStaffRoster.setBounds(720, 10, 150, 50);
        StaffPanel.add(lblViewStaffRoster, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblCreateNewStaff.setBackground(new java.awt.Color(255, 255, 255));
        lblCreateNewStaff.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblCreateNewStaff.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblCreateNewStaff.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N
        lblCreateNewStaff.setText("Create New Staff");
        lblCreateNewStaff.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblCreateNewStaff.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblCreateNewStaffMouseClicked(evt);
            }
        });
        lblCreateNewStaff.setBounds(10, 10, 150, 50);
        StaffPanel.add(lblCreateNewStaff, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblEditCurrentStaff.setBackground(new java.awt.Color(255, 255, 255));
        lblEditCurrentStaff.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEditCurrentStaff.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblEditCurrentStaff.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N
        lblEditCurrentStaff.setText("Edit Current Staff");
        lblEditCurrentStaff.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblEditCurrentStaff.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblEditCurrentStaffMouseClicked(evt);
            }
        });
        lblEditCurrentStaff.setBounds(10, 440, 150, 50);
        StaffPanel.add(lblEditCurrentStaff, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmEditCurrentStaff.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmEditCurrentStaff.setClosable(true);
        frmEditCurrentStaff.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmEditCurrentStaff.setTitle("EDIT CURRENT STAFF");
        frmEditCurrentStaff.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N

        jLabel14.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel14.setText("Position");

        cmbEditStaffPos.setFont(new java.awt.Font("Tahoma", 0, 14));
        cmbEditStaffPos.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Kitchen Staff", "Dining Room Staff", "Maintenance Staff", "Administration Staff" }));

        jLabel15.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel15.setText("Hr Wage");

        txtEditStaffDollars.setFont(new java.awt.Font("Tahoma", 0, 14));
        txtEditStaffDollars.setText("00");

        txtEditStaffCents.setFont(new java.awt.Font("Tahoma", 0, 14));
        txtEditStaffCents.setText("00");

        jLabel16.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel16.setText(".");

        jLabel17.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel17.setText("$");

        jLabel18.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel18.setText("Address");

        txtEditStaffAddress.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel19.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel19.setText("Phone");

        txtEditStaffPhone.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel20.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel20.setText("Email");

        txtEditStaffEmail.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel21.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel21.setText("Notes");

        txtEditStaffNotes.setFont(new java.awt.Font("Tahoma", 0, 14));

        btnDeleteStaff.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnDeleteStaff.setText("Delete Staff");

        btnSaveStaff.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnSaveStaff.setText("Save Edits");

        jLabel12.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel12.setText("Select Staff");

        cmbStaff.setFont(new java.awt.Font("Tahoma", 0, 14));
        cmbStaff.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Staff 1", "Staff 2" }));

        javax.swing.GroupLayout frmEditCurrentStaffLayout = new javax.swing.GroupLayout(frmEditCurrentStaff.getContentPane());
        frmEditCurrentStaff.getContentPane().setLayout(frmEditCurrentStaffLayout);
        frmEditCurrentStaffLayout.setHorizontalGroup(
            frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmEditCurrentStaffLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtEditStaffAddress, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)
                    .addComponent(jLabel18)
                    .addGroup(frmEditCurrentStaffLayout.createSequentialGroup()
                        .addComponent(jLabel19)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                        .addComponent(txtEditStaffPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmEditCurrentStaffLayout.createSequentialGroup()
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
                        .addComponent(txtEditStaffEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(txtEditStaffNotes, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)
                    .addComponent(jLabel21)
                    .addGroup(frmEditCurrentStaffLayout.createSequentialGroup()
                        .addComponent(btnDeleteStaff)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 118, Short.MAX_VALUE)
                        .addComponent(btnSaveStaff))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmEditCurrentStaffLayout.createSequentialGroup()
                        .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel14)
                            .addComponent(jLabel15))
                        .addGap(46, 46, 46)
                        .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(frmEditCurrentStaffLayout.createSequentialGroup()
                                .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtEditStaffDollars, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel16)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtEditStaffCents, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(cmbEditStaffPos, javax.swing.GroupLayout.Alignment.TRAILING, 0, 202, Short.MAX_VALUE)
                            .addComponent(cmbStaff, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jSeparator9, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE))
                .addContainerGap())
        );
        frmEditCurrentStaffLayout.setVerticalGroup(
            frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmEditCurrentStaffLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(cmbStaff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addComponent(jSeparator9, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(cmbEditStaffPos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel15)
                    .addComponent(jLabel17)
                    .addComponent(txtEditStaffDollars, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16)
                    .addComponent(txtEditStaffCents, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel18)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtEditStaffAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(txtEditStaffPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(txtEditStaffEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtEditStaffNotes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditCurrentStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnDeleteStaff)
                    .addComponent(btnSaveStaff))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        frmEditCurrentStaff.setBounds(430, 50, 340, 360);
        StaffPanel.add(frmEditCurrentStaff, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmCreateNewStaff.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmCreateNewStaff.setClosable(true);
        frmCreateNewStaff.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmCreateNewStaff.setTitle("CREATE NEW STAFF");
        frmCreateNewStaff.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N

        jLabel41.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel41.setText("First Name");

        jLabel42.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel42.setText("Last Name");

        txtNewStaffFirstName.setFont(new java.awt.Font("Tahoma", 0, 14));

        txtNewStaffLastName.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel43.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel43.setText("Position");

        cmbNewStaffPos.setFont(new java.awt.Font("Tahoma", 0, 14));
        cmbNewStaffPos.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Kitchen Staff", "Dining Room Staff", "Maintenance Staff", "Administration Staff" }));

        jLabel44.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel44.setText("Hr Wage");

        txtNewStaffDollars.setFont(new java.awt.Font("Tahoma", 0, 14));
        txtNewStaffDollars.setText("00");

        txtNewStaffCents.setFont(new java.awt.Font("Tahoma", 0, 14));
        txtNewStaffCents.setText("00");

        jLabel45.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel45.setText(".");

        jLabel46.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel46.setText("$");

        jLabel47.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel47.setText("Address");

        txtNewStaffAddress.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel48.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel48.setText("Phone");

        txtNewStaffPhone.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel49.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel49.setText("Email");

        txtNewStaffEmail.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel50.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel50.setText("Notes");

        txtNewStaffNotes.setFont(new java.awt.Font("Tahoma", 0, 14));

        btnStaffClear.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnStaffClear.setText("Clear Form");

        btnCreateStaff.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnCreateStaff.setText("Save Staff");
        btnCreateStaff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCreateStaffActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout frmCreateNewStaffLayout = new javax.swing.GroupLayout(frmCreateNewStaff.getContentPane());
        frmCreateNewStaff.getContentPane().setLayout(frmCreateNewStaffLayout);
        frmCreateNewStaffLayout.setHorizontalGroup(
            frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmCreateNewStaffLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtNewStaffAddress, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)
                    .addGroup(frmCreateNewStaffLayout.createSequentialGroup()
                        .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel42)
                            .addComponent(jLabel43)
                            .addComponent(jLabel41)
                            .addComponent(jLabel44))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                        .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(frmCreateNewStaffLayout.createSequentialGroup()
                                .addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtNewStaffDollars, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabel45)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtNewStaffCents, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(txtNewStaffFirstName)
                                .addComponent(cmbNewStaffPos, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtNewStaffLastName, javax.swing.GroupLayout.DEFAULT_SIZE, 239, Short.MAX_VALUE))))
                    .addComponent(jLabel47)
                    .addGroup(frmCreateNewStaffLayout.createSequentialGroup()
                        .addComponent(jLabel48)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                        .addComponent(txtNewStaffPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmCreateNewStaffLayout.createSequentialGroup()
                        .addComponent(jLabel49)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
                        .addComponent(txtNewStaffEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(txtNewStaffNotes, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)
                    .addComponent(jLabel50)
                    .addGroup(frmCreateNewStaffLayout.createSequentialGroup()
                        .addComponent(btnStaffClear)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 122, Short.MAX_VALUE)
                        .addComponent(btnCreateStaff)))
                .addContainerGap())
        );
        frmCreateNewStaffLayout.setVerticalGroup(
            frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmCreateNewStaffLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel41)
                    .addComponent(txtNewStaffFirstName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel42)
                    .addComponent(txtNewStaffLastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel43)
                    .addComponent(cmbNewStaffPos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel44)
                    .addComponent(jLabel46)
                    .addComponent(txtNewStaffDollars, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtNewStaffCents, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel45))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel47)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtNewStaffAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel48)
                    .addComponent(txtNewStaffPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel49)
                    .addComponent(txtNewStaffEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel50)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtNewStaffNotes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmCreateNewStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnStaffClear)
                    .addComponent(btnCreateStaff))
                .addContainerGap(15, Short.MAX_VALUE))
        );

        frmCreateNewStaff.setBounds(70, 50, 340, 360);
        StaffPanel.add(frmCreateNewStaff, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout panelStaffLayout = new javax.swing.GroupLayout(panelStaff);
        panelStaff.setLayout(panelStaffLayout);
        panelStaffLayout.setHorizontalGroup(
            panelStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelStaffLayout.createSequentialGroup()
                .addGroup(panelStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelStaffLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(lblStaff))
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panelStaffLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(StaffPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 886, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelStaffLayout.setVerticalGroup(
            panelStaffLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelStaffLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblStaff)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(StaffPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabSet.addTab("STAFF", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png")), panelStaff); // NOI18N

        lblPlan1.setFont(new java.awt.Font("BankGothic Lt BT", 0, 48));
        lblPlan1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/Credit-48x48.png"))); // NOI18N
        lblPlan1.setText("Schedule");

        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jPanel1FocusGained(evt);
            }
        });

        jList2.setBackground(new java.awt.Color(255, 255, 204));
        jList2.setBorder(javax.swing.BorderFactory.createTitledBorder("KITCHEN"));
        jList2.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jList2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseDragged(java.awt.event.MouseEvent evt) {
                jList2MouseDragged(evt);
            }
        });
        jScrollPane5.setViewportView(jList2);

        jList8.setBackground(new java.awt.Color(204, 255, 255));
        jList8.setBorder(javax.swing.BorderFactory.createTitledBorder("DINING ROOM"));
        jList8.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jList8.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseDragged(java.awt.event.MouseEvent evt) {
                jList8MouseDragged(evt);
            }
        });
        jScrollPane11.setViewportView(jList8);

        jList9.setBackground(new java.awt.Color(204, 255, 204));
        jList9.setBorder(javax.swing.BorderFactory.createTitledBorder("ADMINISTRATION"));
        jList9.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jList9.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseDragged(java.awt.event.MouseEvent evt) {
                jList9MouseDragged(evt);
            }
        });
        jScrollPane12.setViewportView(jList9);

        jList10.setBackground(new java.awt.Color(255, 204, 255));
        jList10.setBorder(javax.swing.BorderFactory.createTitledBorder("MAINTENANCE"));
        jList10.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jList10.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseDragged(java.awt.event.MouseEvent evt) {
                jList10MouseDragged(evt);
            }
        });
        jScrollPane13.setViewportView(jList10);

        calendar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        calendar.setAutoscrolls(true);

        day.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day.setMaximumSize(new java.awt.Dimension(89, 105));
        day.setMinimumSize(new java.awt.Dimension(89, 105));
        day.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                dayMouseReleased(evt);
            }
        });

        number.setBackground(new java.awt.Color(255, 255, 255));
        number.setFont(new java.awt.Font("Tahoma", 1, 12));
        number.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number.setText("0");
        number.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am.setBackground(new java.awt.Color(255, 255, 255));
        am.setFont(new java.awt.Font("Tahoma", 1, 12));
        am.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am.setText("0");
        am.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                amMouseReleased(evt);
            }
        });

        pm.setBackground(new java.awt.Color(255, 255, 255));
        pm.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm.setText("0");
        pm.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pmMouseReleased(evt);
            }
        });

        javax.swing.GroupLayout dayLayout = new javax.swing.GroupLayout(day);
        day.setLayout(dayLayout);
        dayLayout.setHorizontalGroup(
            dayLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dayLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(dayLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        dayLayout.setVerticalGroup(
            dayLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(dayLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day1.setMaximumSize(new java.awt.Dimension(89, 105));
        day1.setMinimumSize(new java.awt.Dimension(89, 105));
        day1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                day1MouseReleased(evt);
            }
        });

        number1.setBackground(new java.awt.Color(255, 255, 255));
        number1.setFont(new java.awt.Font("Tahoma", 1, 12));
        number1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number1.setText("0");
        number1.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am1.setBackground(new java.awt.Color(255, 255, 255));
        am1.setFont(new java.awt.Font("Tahoma", 1, 12));
        am1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am1.setText("0");
        am1.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am1MouseReleased(evt);
            }
        });

        pm1.setBackground(new java.awt.Color(255, 255, 255));
        pm1.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm1.setText("0");
        pm1.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm1MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day1Layout = new javax.swing.GroupLayout(day1);
        day1.setLayout(day1Layout);
        day1Layout.setHorizontalGroup(
            day1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day1Layout.setVerticalGroup(
            day1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day2.setMaximumSize(new java.awt.Dimension(89, 105));
        day2.setMinimumSize(new java.awt.Dimension(89, 105));
        day2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                day2MouseReleased(evt);
            }
        });

        number2.setBackground(new java.awt.Color(255, 255, 255));
        number2.setFont(new java.awt.Font("Tahoma", 1, 12));
        number2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number2.setText("0");
        number2.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am2.setBackground(new java.awt.Color(255, 255, 255));
        am2.setFont(new java.awt.Font("Tahoma", 1, 12));
        am2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am2.setText("0");
        am2.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am2MouseReleased(evt);
            }
        });

        pm2.setBackground(new java.awt.Color(255, 255, 255));
        pm2.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm2.setText("0");
        pm2.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm2MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day2Layout = new javax.swing.GroupLayout(day2);
        day2.setLayout(day2Layout);
        day2Layout.setHorizontalGroup(
            day2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day2Layout.setVerticalGroup(
            day2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day3.setMaximumSize(new java.awt.Dimension(89, 105));
        day3.setMinimumSize(new java.awt.Dimension(89, 105));

        number3.setBackground(new java.awt.Color(255, 255, 255));
        number3.setFont(new java.awt.Font("Tahoma", 1, 12));
        number3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number3.setText("0");
        number3.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am3.setBackground(new java.awt.Color(255, 255, 255));
        am3.setFont(new java.awt.Font("Tahoma", 1, 12));
        am3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am3.setText("0");
        am3.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am3MouseReleased(evt);
            }
        });

        pm3.setBackground(new java.awt.Color(255, 255, 255));
        pm3.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm3.setText("0");
        pm3.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm3MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day3Layout = new javax.swing.GroupLayout(day3);
        day3.setLayout(day3Layout);
        day3Layout.setHorizontalGroup(
            day3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day3Layout.setVerticalGroup(
            day3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am3, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm3, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day4.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day4.setMaximumSize(new java.awt.Dimension(89, 105));
        day4.setMinimumSize(new java.awt.Dimension(89, 105));

        number4.setBackground(new java.awt.Color(255, 255, 255));
        number4.setFont(new java.awt.Font("Tahoma", 1, 12));
        number4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number4.setText("0");
        number4.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am4.setBackground(new java.awt.Color(255, 255, 255));
        am4.setFont(new java.awt.Font("Tahoma", 1, 12));
        am4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am4.setText("0");
        am4.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am4MouseReleased(evt);
            }
        });

        pm4.setBackground(new java.awt.Color(255, 255, 255));
        pm4.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm4.setText("0");
        pm4.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm4MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day4Layout = new javax.swing.GroupLayout(day4);
        day4.setLayout(day4Layout);
        day4Layout.setHorizontalGroup(
            day4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day4Layout.setVerticalGroup(
            day4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day5.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day5.setMaximumSize(new java.awt.Dimension(89, 105));
        day5.setMinimumSize(new java.awt.Dimension(89, 105));

        number5.setBackground(new java.awt.Color(255, 255, 255));
        number5.setFont(new java.awt.Font("Tahoma", 1, 12));
        number5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number5.setText("0");
        number5.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am5.setBackground(new java.awt.Color(255, 255, 255));
        am5.setFont(new java.awt.Font("Tahoma", 1, 12));
        am5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am5.setText("0");
        am5.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am5MouseReleased(evt);
            }
        });

        pm5.setBackground(new java.awt.Color(255, 255, 255));
        pm5.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm5.setText("0");
        pm5.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm5MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day5Layout = new javax.swing.GroupLayout(day5);
        day5.setLayout(day5Layout);
        day5Layout.setHorizontalGroup(
            day5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day5Layout.setVerticalGroup(
            day5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day6.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day6.setMaximumSize(new java.awt.Dimension(89, 105));
        day6.setMinimumSize(new java.awt.Dimension(89, 105));

        number6.setBackground(new java.awt.Color(255, 255, 255));
        number6.setFont(new java.awt.Font("Tahoma", 1, 12));
        number6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number6.setText("0");
        number6.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am6.setBackground(new java.awt.Color(255, 255, 255));
        am6.setFont(new java.awt.Font("Tahoma", 1, 12));
        am6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am6.setText("0");
        am6.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am6MouseReleased(evt);
            }
        });

        pm6.setBackground(new java.awt.Color(255, 255, 255));
        pm6.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm6.setText("0");
        pm6.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm6MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day6Layout = new javax.swing.GroupLayout(day6);
        day6.setLayout(day6Layout);
        day6Layout.setHorizontalGroup(
            day6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day6Layout.setVerticalGroup(
            day6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day7.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day7.setMaximumSize(new java.awt.Dimension(89, 105));
        day7.setMinimumSize(new java.awt.Dimension(89, 105));

        number7.setBackground(new java.awt.Color(255, 255, 255));
        number7.setFont(new java.awt.Font("Tahoma", 1, 12));
        number7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number7.setText("0");
        number7.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am7.setBackground(new java.awt.Color(255, 255, 255));
        am7.setFont(new java.awt.Font("Tahoma", 1, 12));
        am7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am7.setText("0");
        am7.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am7MouseReleased(evt);
            }
        });

        pm7.setBackground(new java.awt.Color(255, 255, 255));
        pm7.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm7.setText("0");
        pm7.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm7MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day7Layout = new javax.swing.GroupLayout(day7);
        day7.setLayout(day7Layout);
        day7Layout.setHorizontalGroup(
            day7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day7Layout.setVerticalGroup(
            day7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am7, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm7, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day8.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day8.setMaximumSize(new java.awt.Dimension(89, 105));
        day8.setMinimumSize(new java.awt.Dimension(89, 105));

        number8.setBackground(new java.awt.Color(255, 255, 255));
        number8.setFont(new java.awt.Font("Tahoma", 1, 12));
        number8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number8.setText("0");
        number8.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am8.setBackground(new java.awt.Color(255, 255, 255));
        am8.setFont(new java.awt.Font("Tahoma", 1, 12));
        am8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am8.setText("0");
        am8.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am8MouseReleased(evt);
            }
        });

        pm8.setBackground(new java.awt.Color(255, 255, 255));
        pm8.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm8.setText("0");
        pm8.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm8MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day8Layout = new javax.swing.GroupLayout(day8);
        day8.setLayout(day8Layout);
        day8Layout.setHorizontalGroup(
            day8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day8Layout.setVerticalGroup(
            day8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day9.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day9.setMaximumSize(new java.awt.Dimension(89, 105));
        day9.setMinimumSize(new java.awt.Dimension(89, 105));

        number9.setBackground(new java.awt.Color(255, 255, 255));
        number9.setFont(new java.awt.Font("Tahoma", 1, 12));
        number9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number9.setText("0");
        number9.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am9.setBackground(new java.awt.Color(255, 255, 255));
        am9.setFont(new java.awt.Font("Tahoma", 1, 12));
        am9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am9.setText("0");
        am9.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am9MouseReleased(evt);
            }
        });

        pm9.setBackground(new java.awt.Color(255, 255, 255));
        pm9.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm9.setText("0");
        pm9.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm9MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day9Layout = new javax.swing.GroupLayout(day9);
        day9.setLayout(day9Layout);
        day9Layout.setHorizontalGroup(
            day9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day9Layout.setVerticalGroup(
            day9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number9)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am9, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm9, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day10.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day10.setMaximumSize(new java.awt.Dimension(89, 105));
        day10.setMinimumSize(new java.awt.Dimension(89, 105));

        number10.setBackground(new java.awt.Color(255, 255, 255));
        number10.setFont(new java.awt.Font("Tahoma", 1, 12));
        number10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number10.setText("0");
        number10.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am10.setBackground(new java.awt.Color(255, 255, 255));
        am10.setFont(new java.awt.Font("Tahoma", 1, 12));
        am10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am10.setText("0");
        am10.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am10MouseReleased(evt);
            }
        });

        pm10.setBackground(new java.awt.Color(255, 255, 255));
        pm10.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm10.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm10.setText("0");
        pm10.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm10MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day10Layout = new javax.swing.GroupLayout(day10);
        day10.setLayout(day10Layout);
        day10Layout.setHorizontalGroup(
            day10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number10, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am10, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm10, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day10Layout.setVerticalGroup(
            day10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day11.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day11.setMaximumSize(new java.awt.Dimension(89, 105));
        day11.setMinimumSize(new java.awt.Dimension(89, 105));

        number11.setBackground(new java.awt.Color(255, 255, 255));
        number11.setFont(new java.awt.Font("Tahoma", 1, 12));
        number11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number11.setText("0");
        number11.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am11.setBackground(new java.awt.Color(255, 255, 255));
        am11.setFont(new java.awt.Font("Tahoma", 1, 12));
        am11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am11.setText("0");
        am11.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am11MouseReleased(evt);
            }
        });

        pm11.setBackground(new java.awt.Color(255, 255, 255));
        pm11.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm11.setText("0");
        pm11.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm11MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day11Layout = new javax.swing.GroupLayout(day11);
        day11.setLayout(day11Layout);
        day11Layout.setHorizontalGroup(
            day11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day11Layout.setVerticalGroup(
            day11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am11, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm11, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day12.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day12.setMaximumSize(new java.awt.Dimension(89, 105));
        day12.setMinimumSize(new java.awt.Dimension(89, 105));

        number12.setBackground(new java.awt.Color(255, 255, 255));
        number12.setFont(new java.awt.Font("Tahoma", 1, 12));
        number12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number12.setText("0");
        number12.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am12.setBackground(new java.awt.Color(255, 255, 255));
        am12.setFont(new java.awt.Font("Tahoma", 1, 12));
        am12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am12.setText("0");
        am12.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am12MouseReleased(evt);
            }
        });

        pm12.setBackground(new java.awt.Color(255, 255, 255));
        pm12.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm12.setText("0");
        pm12.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm12.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm12MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day12Layout = new javax.swing.GroupLayout(day12);
        day12.setLayout(day12Layout);
        day12Layout.setHorizontalGroup(
            day12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day12Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day12Layout.setVerticalGroup(
            day12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number12)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day13.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day13.setMaximumSize(new java.awt.Dimension(89, 105));
        day13.setMinimumSize(new java.awt.Dimension(89, 105));

        number13.setBackground(new java.awt.Color(255, 255, 255));
        number13.setFont(new java.awt.Font("Tahoma", 1, 12));
        number13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number13.setText("0");
        number13.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am13.setBackground(new java.awt.Color(255, 255, 255));
        am13.setFont(new java.awt.Font("Tahoma", 1, 12));
        am13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am13.setText("0");
        am13.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am13MouseReleased(evt);
            }
        });

        pm13.setBackground(new java.awt.Color(255, 255, 255));
        pm13.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm13.setText("0");
        pm13.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm13.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm13MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day13Layout = new javax.swing.GroupLayout(day13);
        day13.setLayout(day13Layout);
        day13Layout.setHorizontalGroup(
            day13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day13Layout.setVerticalGroup(
            day13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number13)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am13, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm13, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day14.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day14.setMaximumSize(new java.awt.Dimension(89, 105));
        day14.setMinimumSize(new java.awt.Dimension(89, 105));

        number14.setBackground(new java.awt.Color(255, 255, 255));
        number14.setFont(new java.awt.Font("Tahoma", 1, 12));
        number14.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number14.setText("0");
        number14.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am14.setBackground(new java.awt.Color(255, 255, 255));
        am14.setFont(new java.awt.Font("Tahoma", 1, 12));
        am14.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am14.setText("0");
        am14.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am14MouseReleased(evt);
            }
        });

        pm14.setBackground(new java.awt.Color(255, 255, 255));
        pm14.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm14.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm14.setText("0");
        pm14.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm14.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm14MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day14Layout = new javax.swing.GroupLayout(day14);
        day14.setLayout(day14Layout);
        day14Layout.setHorizontalGroup(
            day14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day14Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number14, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am14, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm14, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day14Layout.setVerticalGroup(
            day14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day14Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day15.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day15.setMaximumSize(new java.awt.Dimension(89, 105));
        day15.setMinimumSize(new java.awt.Dimension(89, 105));

        number15.setBackground(new java.awt.Color(255, 255, 255));
        number15.setFont(new java.awt.Font("Tahoma", 1, 12));
        number15.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number15.setText("0");
        number15.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am15.setBackground(new java.awt.Color(255, 255, 255));
        am15.setFont(new java.awt.Font("Tahoma", 1, 12));
        am15.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am15.setText("0");
        am15.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am15MouseReleased(evt);
            }
        });

        pm15.setBackground(new java.awt.Color(255, 255, 255));
        pm15.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm15.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm15.setText("0");
        pm15.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm15.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm15MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day15Layout = new javax.swing.GroupLayout(day15);
        day15.setLayout(day15Layout);
        day15Layout.setHorizontalGroup(
            day15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day15Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day15Layout.setVerticalGroup(
            day15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day15Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number15)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am15, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm15, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day16.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day16.setMaximumSize(new java.awt.Dimension(89, 105));
        day16.setMinimumSize(new java.awt.Dimension(89, 105));

        number16.setBackground(new java.awt.Color(255, 255, 255));
        number16.setFont(new java.awt.Font("Tahoma", 1, 12));
        number16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number16.setText("0");
        number16.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am16.setBackground(new java.awt.Color(255, 255, 255));
        am16.setFont(new java.awt.Font("Tahoma", 1, 12));
        am16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am16.setText("0");
        am16.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am16.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am16MouseReleased(evt);
            }
        });

        pm16.setBackground(new java.awt.Color(255, 255, 255));
        pm16.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm16.setText("0");
        pm16.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm16.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm16MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day16Layout = new javax.swing.GroupLayout(day16);
        day16.setLayout(day16Layout);
        day16Layout.setHorizontalGroup(
            day16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day16Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day16Layout.setVerticalGroup(
            day16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day16Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number16)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day17.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day17.setMaximumSize(new java.awt.Dimension(89, 105));
        day17.setMinimumSize(new java.awt.Dimension(89, 105));

        number17.setBackground(new java.awt.Color(255, 255, 255));
        number17.setFont(new java.awt.Font("Tahoma", 1, 12));
        number17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number17.setText("0");
        number17.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am17.setBackground(new java.awt.Color(255, 255, 255));
        am17.setFont(new java.awt.Font("Tahoma", 1, 12));
        am17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am17.setText("0");
        am17.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am17.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am17MouseReleased(evt);
            }
        });

        pm17.setBackground(new java.awt.Color(255, 255, 255));
        pm17.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm17.setText("0");
        pm17.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm17.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm17MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day17Layout = new javax.swing.GroupLayout(day17);
        day17.setLayout(day17Layout);
        day17Layout.setHorizontalGroup(
            day17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day17Layout.setVerticalGroup(
            day17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number17)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am17, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm17, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day18.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day18.setMaximumSize(new java.awt.Dimension(89, 105));
        day18.setMinimumSize(new java.awt.Dimension(89, 105));

        number18.setBackground(new java.awt.Color(255, 255, 255));
        number18.setFont(new java.awt.Font("Tahoma", 1, 12));
        number18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number18.setText("0");
        number18.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am18.setBackground(new java.awt.Color(255, 255, 255));
        am18.setFont(new java.awt.Font("Tahoma", 1, 12));
        am18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am18.setText("0");
        am18.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am18.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am18MouseReleased(evt);
            }
        });

        pm18.setBackground(new java.awt.Color(255, 255, 255));
        pm18.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm18.setText("0");
        pm18.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm18.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm18MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day18Layout = new javax.swing.GroupLayout(day18);
        day18.setLayout(day18Layout);
        day18Layout.setHorizontalGroup(
            day18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day18Layout.setVerticalGroup(
            day18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day18Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number18)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am18, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm18, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day19.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day19.setMaximumSize(new java.awt.Dimension(89, 105));
        day19.setMinimumSize(new java.awt.Dimension(89, 105));

        number19.setBackground(new java.awt.Color(255, 255, 255));
        number19.setFont(new java.awt.Font("Tahoma", 1, 12));
        number19.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number19.setText("0");
        number19.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am19.setBackground(new java.awt.Color(255, 255, 255));
        am19.setFont(new java.awt.Font("Tahoma", 1, 12));
        am19.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am19.setText("0");
        am19.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am19MouseReleased(evt);
            }
        });

        pm19.setBackground(new java.awt.Color(255, 255, 255));
        pm19.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm19.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm19.setText("0");
        pm19.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm19MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day19Layout = new javax.swing.GroupLayout(day19);
        day19.setLayout(day19Layout);
        day19Layout.setHorizontalGroup(
            day19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day19Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day19Layout.setVerticalGroup(
            day19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number19)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am19, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm19, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day20.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day20.setMaximumSize(new java.awt.Dimension(89, 105));
        day20.setMinimumSize(new java.awt.Dimension(89, 105));

        number20.setBackground(new java.awt.Color(255, 255, 255));
        number20.setFont(new java.awt.Font("Tahoma", 1, 12));
        number20.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number20.setText("0");
        number20.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am20.setBackground(new java.awt.Color(255, 255, 255));
        am20.setFont(new java.awt.Font("Tahoma", 1, 12));
        am20.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am20.setText("0");
        am20.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am20MouseReleased(evt);
            }
        });

        pm20.setBackground(new java.awt.Color(255, 255, 255));
        pm20.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm20.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm20.setText("0");
        pm20.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm20.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm20MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day20Layout = new javax.swing.GroupLayout(day20);
        day20.setLayout(day20Layout);
        day20Layout.setHorizontalGroup(
            day20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day20Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day20Layout.setVerticalGroup(
            day20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day20Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number20)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am20, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm20, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day22.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day22.setMaximumSize(new java.awt.Dimension(89, 105));
        day22.setMinimumSize(new java.awt.Dimension(89, 105));

        number22.setBackground(new java.awt.Color(255, 255, 255));
        number22.setFont(new java.awt.Font("Tahoma", 1, 12));
        number22.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number22.setText("0");
        number22.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am22.setBackground(new java.awt.Color(255, 255, 255));
        am22.setFont(new java.awt.Font("Tahoma", 1, 12));
        am22.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am22.setText("0");
        am22.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am22.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am22MouseReleased(evt);
            }
        });

        pm22.setBackground(new java.awt.Color(255, 255, 255));
        pm22.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm22.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm22.setText("0");
        pm22.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm22.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm22MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day22Layout = new javax.swing.GroupLayout(day22);
        day22.setLayout(day22Layout);
        day22Layout.setHorizontalGroup(
            day22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day22Layout.setVerticalGroup(
            day22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day22Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number22)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am22, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm22, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day23.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day23.setMaximumSize(new java.awt.Dimension(89, 105));
        day23.setMinimumSize(new java.awt.Dimension(89, 105));

        number23.setBackground(new java.awt.Color(255, 255, 255));
        number23.setFont(new java.awt.Font("Tahoma", 1, 12));
        number23.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number23.setText("0");
        number23.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am23.setBackground(new java.awt.Color(255, 255, 255));
        am23.setFont(new java.awt.Font("Tahoma", 1, 12));
        am23.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am23.setText("0");
        am23.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am23MouseReleased(evt);
            }
        });

        pm23.setBackground(new java.awt.Color(255, 255, 255));
        pm23.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm23.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm23.setText("0");
        pm23.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm23.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm23MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day23Layout = new javax.swing.GroupLayout(day23);
        day23.setLayout(day23Layout);
        day23Layout.setHorizontalGroup(
            day23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day23Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day23Layout.setVerticalGroup(
            day23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day23Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number23)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am23, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm23, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day24.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day24.setMaximumSize(new java.awt.Dimension(89, 105));
        day24.setMinimumSize(new java.awt.Dimension(89, 105));

        number24.setBackground(new java.awt.Color(255, 255, 255));
        number24.setFont(new java.awt.Font("Tahoma", 1, 12));
        number24.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number24.setText("0");
        number24.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am24.setBackground(new java.awt.Color(255, 255, 255));
        am24.setFont(new java.awt.Font("Tahoma", 1, 12));
        am24.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am24.setText("0");
        am24.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am24.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am24MouseReleased(evt);
            }
        });

        pm24.setBackground(new java.awt.Color(255, 255, 255));
        pm24.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm24.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm24.setText("0");
        pm24.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm24.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm24MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day24Layout = new javax.swing.GroupLayout(day24);
        day24.setLayout(day24Layout);
        day24Layout.setHorizontalGroup(
            day24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day24Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number24, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am24, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm24, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day24Layout.setVerticalGroup(
            day24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day24Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number24)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am24, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm24, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day25.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day25.setMaximumSize(new java.awt.Dimension(89, 105));
        day25.setMinimumSize(new java.awt.Dimension(89, 105));

        number25.setBackground(new java.awt.Color(255, 255, 255));
        number25.setFont(new java.awt.Font("Tahoma", 1, 12));
        number25.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number25.setText("0");
        number25.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am25.setBackground(new java.awt.Color(255, 255, 255));
        am25.setFont(new java.awt.Font("Tahoma", 1, 12));
        am25.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am25.setText("0");
        am25.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am25.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am25MouseReleased(evt);
            }
        });

        pm25.setBackground(new java.awt.Color(255, 255, 255));
        pm25.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm25.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm25.setText("0");
        pm25.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm25.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm25MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day25Layout = new javax.swing.GroupLayout(day25);
        day25.setLayout(day25Layout);
        day25Layout.setHorizontalGroup(
            day25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day25Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number25, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am25, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm25, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day25Layout.setVerticalGroup(
            day25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day25Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number25)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am25, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm25, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day26.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day26.setMaximumSize(new java.awt.Dimension(89, 105));
        day26.setMinimumSize(new java.awt.Dimension(89, 105));

        number26.setBackground(new java.awt.Color(255, 255, 255));
        number26.setFont(new java.awt.Font("Tahoma", 1, 12));
        number26.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number26.setText("0");
        number26.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am26.setBackground(new java.awt.Color(255, 255, 255));
        am26.setFont(new java.awt.Font("Tahoma", 1, 12));
        am26.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am26.setText("0");
        am26.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am26.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am26MouseReleased(evt);
            }
        });

        pm26.setBackground(new java.awt.Color(255, 255, 255));
        pm26.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm26.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm26.setText("0");
        pm26.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm26.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm26MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day26Layout = new javax.swing.GroupLayout(day26);
        day26.setLayout(day26Layout);
        day26Layout.setHorizontalGroup(
            day26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day26Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number26, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am26, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm26, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day26Layout.setVerticalGroup(
            day26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day26Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number26)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am26, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm26, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day27.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day27.setMaximumSize(new java.awt.Dimension(89, 105));
        day27.setMinimumSize(new java.awt.Dimension(89, 105));

        number27.setBackground(new java.awt.Color(255, 255, 255));
        number27.setFont(new java.awt.Font("Tahoma", 1, 12));
        number27.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number27.setText("0");
        number27.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am27.setBackground(new java.awt.Color(255, 255, 255));
        am27.setFont(new java.awt.Font("Tahoma", 1, 12));
        am27.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am27.setText("0");
        am27.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am27.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am27MouseReleased(evt);
            }
        });

        pm27.setBackground(new java.awt.Color(255, 255, 255));
        pm27.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm27.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm27.setText("0");
        pm27.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm27.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm27MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day27Layout = new javax.swing.GroupLayout(day27);
        day27.setLayout(day27Layout);
        day27Layout.setHorizontalGroup(
            day27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day27Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day27Layout.setVerticalGroup(
            day27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day27Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number27)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am27, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm27, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        day28.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        day28.setMaximumSize(new java.awt.Dimension(89, 105));
        day28.setMinimumSize(new java.awt.Dimension(89, 105));

        number28.setBackground(new java.awt.Color(255, 255, 255));
        number28.setFont(new java.awt.Font("Tahoma", 1, 12));
        number28.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        number28.setText("0");
        number28.setVerticalAlignment(javax.swing.SwingConstants.TOP);

        am28.setBackground(new java.awt.Color(255, 255, 255));
        am28.setFont(new java.awt.Font("Tahoma", 1, 12));
        am28.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        am28.setText("0");
        am28.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        am28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                am28MouseReleased(evt);
            }
        });

        pm28.setBackground(new java.awt.Color(255, 255, 255));
        pm28.setFont(new java.awt.Font("Tahoma", 1, 12));
        pm28.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        pm28.setText("0");
        pm28.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        pm28.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                pm28MouseReleased(evt);
            }
        });

        javax.swing.GroupLayout day28Layout = new javax.swing.GroupLayout(day28);
        day28.setLayout(day28Layout);
        day28Layout.setHorizontalGroup(
            day28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day28Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(day28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(number28, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(am28, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pm28, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                .addContainerGap())
        );
        day28Layout.setVerticalGroup(
            day28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(day28Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(number28)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(am28, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pm28, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jComboBox1.setFont(new java.awt.Font("Tahoma", 1, 14));
        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }));
        jComboBox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox1ActionPerformed(evt);
            }
        });

        jComboBox2.setFont(new java.awt.Font("Tahoma", 1, 14));
        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2008", "2009", "2010", "2011", "2012" }));
        jComboBox2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox2ActionPerformed(evt);
            }
        });

        jLabel6.setText("        SUNDAY                 MONDAY                  TUESDAY             WEDNESDAY              THURSDAY               FRIDAY                 SATURDAY");

        cmdBuildCalendar1.setText("1");
        cmdBuildCalendar1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cmdBuildCalendar1MouseClicked(evt);
            }
        });

        cmdBuildCalendar2.setText("2");
        cmdBuildCalendar2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cmdBuildCalendar2MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout calendarLayout = new javax.swing.GroupLayout(calendar);
        calendar.setLayout(calendarLayout);
        calendarLayout.setHorizontalGroup(
            calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(calendarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(calendarLayout.createSequentialGroup()
                        .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(calendarLayout.createSequentialGroup()
                                .addComponent(day7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(calendarLayout.createSequentialGroup()
                                .addComponent(day14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(calendarLayout.createSequentialGroup()
                                .addComponent(day, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(calendarLayout.createSequentialGroup()
                                .addComponent(day22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(day27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(day28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(calendarLayout.createSequentialGroup()
                                        .addComponent(cmdBuildCalendar1)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(cmdBuildCalendar2)))))
                        .addContainerGap(35, Short.MAX_VALUE))
                    .addGroup(calendarLayout.createSequentialGroup()
                        .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(415, 415, 415))))
        );
        calendarLayout.setVerticalGroup(
            calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(calendarLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(day6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(day13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(day20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(day28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(day22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(calendarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cmdBuildCalendar2)
                        .addComponent(cmdBuildCalendar1)))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        lstDelete.setBackground(new java.awt.Color(204, 0, 0));
        lstDelete.setBorder(javax.swing.BorderFactory.createTitledBorder("CLEAR"));
        lstDelete.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "X" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        lstDelete.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseDragged(java.awt.event.MouseEvent evt) {
                lstDeleteMouseDragged(evt);
            }
        });
        jScrollPane14.setViewportView(lstDelete);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jScrollPane13, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane12, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane11, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)))
                .addGap(18, 18, 18)
                .addComponent(calendar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 57, Short.MAX_VALUE))
                    .addComponent(calendar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout panelScheduleLayout = new javax.swing.GroupLayout(panelSchedule);
        panelSchedule.setLayout(panelScheduleLayout);
        panelScheduleLayout.setHorizontalGroup(
            panelScheduleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelScheduleLayout.createSequentialGroup()
                .addGroup(panelScheduleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelScheduleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelScheduleLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(lblPlan1)))
                    .addGroup(panelScheduleLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelScheduleLayout.setVerticalGroup(
            panelScheduleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelScheduleLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblPlan1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabSet.addTab("SCHEDULE", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/Credit-32x32.png")), panelSchedule); // NOI18N

        panelStock.setBackground(new java.awt.Color(255, 255, 204));

        lblPlan2.setFont(new java.awt.Font("BankGothic Lt BT", 0, 48));
        lblPlan2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-48x48.png"))); // NOI18N
        lblPlan2.setText("Stock");

        StockPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        frmViewInventoryList.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmViewInventoryList.setClosable(true);
        frmViewInventoryList.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmViewInventoryList.setTitle("VIEW INVENTORY LIST");
        frmViewInventoryList.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(jTable2);

        try
        {
        	Ingredient[] ingredient1 = em.find(Ingredient.class);
        	Object[][] ingTable = new Object[ingredient1.length][5];
        	for(int i = 0; i < ingredient1.length; i++)
        	{
        		ingTable[i][0] = ingredient1[i].getName();
        		ingTable[i][1] = Float.toString(ingredient1[i].getQuantity());
        		ingTable[i][2] = ingredient1[i].getUnit();
        		ingTable[i][3] = ingredient1[i].getPrice();
        		ingTable[i][4] = ingredient1[i].getNotes();
        	}
        	jTable2.setModel(new javax.swing.table.DefaultTableModel(
        	//	String[] outputRes = new String [createdRes.length][4];
        		//new Object [createdRes.length + 1][4],
        			ingTable,
	            new String [] {
	                "Item Name", "Quantity", "Measure Unit", "Cost per Unit", "Notes"
	            }
	        ));
	        jScrollPane2.setViewportView(jTable2);
        } catch(SQLException e){

        }


        javax.swing.GroupLayout frmViewInventoryListLayout = new javax.swing.GroupLayout(frmViewInventoryList.getContentPane());
        frmViewInventoryList.getContentPane().setLayout(frmViewInventoryListLayout);
        frmViewInventoryListLayout.setHorizontalGroup(
            frmViewInventoryListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmViewInventoryListLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 596, Short.MAX_VALUE)
                .addContainerGap())
        );
        frmViewInventoryListLayout.setVerticalGroup(
            frmViewInventoryListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmViewInventoryListLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        frmViewInventoryList.setBounds(90, 20, 620, 310);
        StockPanel.add(frmViewInventoryList, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblViewInventoryList.setBackground(new java.awt.Color(255, 255, 255));
        lblViewInventoryList.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblViewInventoryList.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblViewInventoryList.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N
        lblViewInventoryList.setText("View Inventory List");
        lblViewInventoryList.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblViewInventoryList.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblViewInventoryListMouseClicked(evt);
            }
        });
        lblViewInventoryList.setBounds(720, 440, 150, 50);
        StockPanel.add(lblViewInventoryList, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblNewStockEntry.setBackground(new java.awt.Color(255, 255, 255));
        lblNewStockEntry.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblNewStockEntry.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblNewStockEntry.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N
        lblNewStockEntry.setText("New Stock Entry");
        lblNewStockEntry.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblNewStockEntry.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblNewStockEntryMouseClicked(evt);
            }
        });
        lblNewStockEntry.setBounds(10, 10, 150, 50);
        StockPanel.add(lblNewStockEntry, javax.swing.JLayeredPane.DEFAULT_LAYER);

       // lblAdjustStock.setBackground(new java.awt.Color(255, 255, 255));
       // lblAdjustStock.setFont(new java.awt.Font("Tahoma", 0, 12));
      //  lblAdjustStock.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
      //  lblAdjustStock.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N
      //  lblAdjustStock.setText("Adjust Stock");
      //  lblAdjustStock.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
      //  lblAdjustStock.addMouseListener(new java.awt.event.MouseAdapter() {
      //      public void mouseClicked(java.awt.event.MouseEvent evt) {
      //          lblAdjustStockMouseClicked(evt);
      //      }
      //  });
      //  lblAdjustStock.setBounds(10, 440, 150, 50);
      //  StockPanel.add(lblAdjustStock, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmEditStockEntry.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmEditStockEntry.setClosable(true);
        frmEditStockEntry.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmEditStockEntry.setTitle("EDIT STOCK ENTRY");
        frmEditStockEntry.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N

        jLabel22.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel22.setText("Measure Unit");

        jComboBox4.setFont(new java.awt.Font("Tahoma", 0, 14));
        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Units", "Kilograms (kg)" }));

        jLabel23.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel23.setText("Quantity");

        jTextField17.setFont(new java.awt.Font("Tahoma", 0, 14));
      

        jLabel29.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel29.setText("Notes");

        jTextField22.setFont(new java.awt.Font("Tahoma", 0, 14));

        jButton7.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton7.setText("Delete Entry");

        jButton8.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton8.setText("Save Edits");

        jLabel13.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel13.setText("Select Stock Item");

        jComboBox5.setFont(new java.awt.Font("Tahoma", 0, 14));
        jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2" }));
        jComboBox5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox5ActionPerformed(evt);
            }
        });

	        Ingredient currIng = (Ingredient) jComboBox5.getSelectedItem();


			if ((currIng) != null)
	        {
				jComboBox4.setSelectedItem(((Ingredient)jComboBox5.getSelectedItem()).getUnit());
				jTextField17.setText(new Float(((Ingredient)jComboBox5.getSelectedItem()).getQuantity()).toString());
				jTextField47.setText((int)currIng.getPrice() + "");
				jTextField48.setText((int)((currIng.getPrice() * 100) % 100) + "");
				jTextField22.setText(currIng.getNotes());
	        }
        }
        catch (SQLException e)
        {
        	e.printStackTrace();
        }
        catch (NullPointerException e)
        {

		}

        jLabel24.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel24.setText("Cost per Unit");

        jLabel61.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel61.setText("$");

        jTextField47.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel62.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel62.setText(".");

        jTextField48.setFont(new java.awt.Font("Tahoma", 0, 14));

        jButton9.setText("+");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        jButton10.setText("-");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout frmEditStockEntryLayout = new javax.swing.GroupLayout(frmEditStockEntry.getContentPane());
        frmEditStockEntry.getContentPane().setLayout(frmEditStockEntryLayout);
        frmEditStockEntryLayout.setHorizontalGroup(
            frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                        .addComponent(jLabel13)
                        .addGap(18, 18, 18)
                        .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jSeparator10, javax.swing.GroupLayout.DEFAULT_SIZE, 402, Short.MAX_VALUE)
                    .addComponent(jLabel29)
                    .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, frmEditStockEntryLayout.createSequentialGroup()
                            .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel24)
                                .addComponent(jLabel22)
                                .addComponent(jLabel23))
                            .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel61, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                                    .addGap(23, 23, 23)
                                    .addComponent(jButton9)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                                    .addGap(2, 2, 2)
                                    .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                                    .addComponent(jTextField47, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel62)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField48, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                                    .addGap(22, 22, 22)
                                    .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(28, 28, 28)
                                    .addComponent(jButton10)))
                            .addGap(34, 34, 34))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, frmEditStockEntryLayout.createSequentialGroup()
                            .addComponent(jButton7)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton8))
                        .addComponent(jTextField22, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 310, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        frmEditStockEntryLayout.setVerticalGroup(
            frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmEditStockEntryLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(jComboBox5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addComponent(jSeparator10, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel22))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(jButton9)
                    .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(jTextField47, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel62)
                    .addComponent(jTextField48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel61))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel29)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton7)
                    .addComponent(jButton8))
                .addContainerGap(74, Short.MAX_VALUE))
        );

        frmEditStockEntry.setBounds(430, 50, 360, 340);
        StockPanel.add(frmEditStockEntry, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblEditStockEntry.setBackground(new java.awt.Color(255, 255, 255));
        lblEditStockEntry.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEditStockEntry.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblEditStockEntry.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N
        lblEditStockEntry.setText("Edit Stock Entry");
        lblEditStockEntry.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblEditStockEntry.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblEditStockEntryMouseClicked(evt);
            }
        });
        lblEditStockEntry.setBounds(720, 10, 150, 50);
        StockPanel.add(lblEditStockEntry, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmNewStockEntry.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmNewStockEntry.setClosable(true);
        frmNewStockEntry.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmNewStockEntry.setTitle("NEW STOCK ENTRY");
        frmNewStockEntry.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N

        jLabel25.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel25.setText("Measure Unit");

        jComboBox7.setFont(new java.awt.Font("Tahoma", 0, 14));
        jComboBox7.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Units", "Kilograms (kg)" }));

        jLabel26.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel26.setText("Quantity");

        jTextField18.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel30.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel30.setText("Notes");

        jTextField23.setFont(new java.awt.Font("Tahoma", 0, 14));

        jButton11.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton11.setText("Clear Form");
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton12.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton12.setText("Save Item");
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        jLabel28.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel28.setText("Cost per Unit");

        jLabel63.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel63.setText("$");

        jTextField49.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel64.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel64.setText(".");

        jTextField50.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel31.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel31.setText("Item Name");

        jTextField24.setFont(new java.awt.Font("Tahoma", 0, 14));

        javax.swing.GroupLayout frmNewStockEntryLayout = new javax.swing.GroupLayout(frmNewStockEntry.getContentPane());
        frmNewStockEntry.getContentPane().setLayout(frmNewStockEntryLayout);
        frmNewStockEntryLayout.setHorizontalGroup(
            frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNewStockEntryLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(frmNewStockEntryLayout.createSequentialGroup()
                        .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel28)
                            .addComponent(jLabel26)
                            .addComponent(jLabel25))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel63, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(frmNewStockEntryLayout.createSequentialGroup()
                                .addComponent(jTextField49, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel64)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField50, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(frmNewStockEntryLayout.createSequentialGroup()
                                .addGap(2, 2, 2)
                                .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jLabel30)
                    .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, frmNewStockEntryLayout.createSequentialGroup()
                            .addComponent(jButton11)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton12))
                        .addComponent(jTextField23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 310, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel31)
                    .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, 310, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(16, Short.MAX_VALUE))
        );
        frmNewStockEntryLayout.setVerticalGroup(
            frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNewStockEntryLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel31)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel25))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel26))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(jTextField49, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel64)
                    .addComponent(jTextField50, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel63))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmNewStockEntryLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton11)
                    .addComponent(jButton12))
                .addContainerGap(83, Short.MAX_VALUE))
        );

        frmNewStockEntry.setBounds(430, 50, 340, 360);
        StockPanel.add(frmNewStockEntry, javax.swing.JLayeredPane.DEFAULT_LAYER);

       // frmAdjustStock.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
      //  frmAdjustStock.setClosable(true);
      //  frmAdjustStock.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
      //  frmAdjustStock.setTitle("ADJUST STOCK");
      //  frmAdjustStock.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N

        jList1.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane3.setViewportView(jList1);

        jLabel32.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel32.setText("Select Inventory Item");

        jLabel33.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel33.setText("Item Name");

        jLabel34.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel34.setText("In-Stock");

        jLabel35.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel35.setText("ItemNameHere");

        jLabel36.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel36.setText("0");

        jLabel37.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel37.setText("Change");

        jLabel38.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel38.setText("+/-0");

        jButton3.setText("+");

        jButton4.setText("-");

        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout frmAdjustStockLayout = new javax.swing.GroupLayout(frmAdjustStock.getContentPane());
        frmAdjustStock.getContentPane().setLayout(frmAdjustStockLayout);
        frmAdjustStockLayout.setHorizontalGroup(
            frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmAdjustStockLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel32)
                    .addGroup(frmAdjustStockLayout.createSequentialGroup()
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel34)
                            .addComponent(jLabel33)
                            .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabel36)
                                .addComponent(jLabel37)
                                .addComponent(jLabel38))
                            .addGroup(frmAdjustStockLayout.createSequentialGroup()
                                .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jButton3)
                                    .addComponent(jLabel35))
                                .addGap(40, 40, 40)
                                .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jButton4))))))
                .addContainerGap(148, Short.MAX_VALUE))
        );
        frmAdjustStockLayout.setVerticalGroup(
            frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmAdjustStockLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel32)
                    .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(frmAdjustStockLayout.createSequentialGroup()
                        .addComponent(jLabel33)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel35)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel34)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel36)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel38))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(frmAdjustStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton3)
                    .addComponent(jButton4))
                .addContainerGap(37, Short.MAX_VALUE))
        );

        frmAdjustStock.setBounds(90, 20, 620, 310);
        StockPanel.add(frmAdjustStock, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout panelStockLayout = new javax.swing.GroupLayout(panelStock);
        panelStock.setLayout(panelStockLayout);
        panelStockLayout.setHorizontalGroup(
            panelStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelStockLayout.createSequentialGroup()
                .addGroup(panelStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelStockLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(lblPlan2)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelStockLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(StockPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 886, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelStockLayout.setVerticalGroup(
            panelStockLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelStockLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblPlan2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(StockPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabSet.addTab("STOCK", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png")), panelStock); // NOI18N

        panelMenu.setBackground(new java.awt.Color(204, 204, 255));

        lblPlan3.setFont(new java.awt.Font("BankGothic Lt BT", 0, 48));
        lblPlan3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-48x48.png"))); // NOI18N
        lblPlan3.setText("Menu");

        StockPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        lblViewInventoryList1.setBackground(new java.awt.Color(255, 255, 255));
        lblViewInventoryList1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblViewInventoryList1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblViewInventoryList1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png"))); // NOI18N
        lblViewInventoryList1.setText("View Menu");
        lblViewInventoryList1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblViewInventoryList1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblViewInventoryList1MouseClicked(evt);
            }
        });
        lblViewInventoryList1.setBounds(720, 440, 150, 50);
        StockPanel1.add(lblViewInventoryList1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblAddMenuItem.setBackground(new java.awt.Color(255, 255, 255));
        lblAddMenuItem.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblAddMenuItem.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblAddMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png"))); // NOI18N
        lblAddMenuItem.setText("New Menu Item");
        lblAddMenuItem.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblAddMenuItem.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblAddMenuItemMouseClicked(evt);
            }
        });
        lblAddMenuItem.setBounds(10, 10, 150, 50);
        StockPanel1.add(lblAddMenuItem, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblEditMenuItem.setBackground(new java.awt.Color(255, 255, 255));
        lblEditMenuItem.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEditMenuItem.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblEditMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png"))); // NOI18N
        lblEditMenuItem.setText("Edit Menu Item");
        lblEditMenuItem.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblEditMenuItem.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblEditMenuItemMouseClicked(evt);
            }
        });
        lblEditMenuItem.setBounds(10, 440, 150, 50);
        StockPanel1.add(lblEditMenuItem, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblEditStockEntry1.setBackground(new java.awt.Color(255, 255, 255));
        lblEditStockEntry1.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEditStockEntry1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblEditStockEntry1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png"))); // NOI18N
        lblEditStockEntry1.setText("Menu Categories");
        lblEditStockEntry1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblEditStockEntry1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblEditStockEntry1MouseClicked(evt);
            }
        });
        lblEditStockEntry1.setBounds(710, 10, 150, 50);
        StockPanel1.add(lblEditStockEntry1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmNewMenuItem.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmNewMenuItem.setClosable(true);
        frmNewMenuItem.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmNewMenuItem.setTitle("NEW MENU ITEM");
        frmNewMenuItem.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N

        jLabel53.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel53.setText("Menu Category");

        jComboBox10.setFont(new java.awt.Font("Tahoma", 0, 14));
       // jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Appetizer", "Main Course", "Dessert", "Beverage" }));
		try
		{
			jComboBox10.setModel(new javax.swing.DefaultComboBoxModel(em.find(ItemCategory.class)));
		}
		catch (SQLException e2)
		{
			// TODO Auto-generated catch block
			e2.printStackTrace();
		}
		
		jComboBox10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox10ActionPerformed(evt);
            }
        });

        jLabel55.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel55.setText("Dish Description");

        jTextField26.setFont(new java.awt.Font("Tahoma", 0, 14));

        jButton15.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton15.setText("Clear Form");
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });

        jButton16.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton16.setText("Save Item");
        jButton16.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed( java.awt.event.ActionEvent evt )
			{
				jButton16ActionPerformed(evt);
			}
			
			
		});

        jLabel56.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel56.setText("List Price");

        jLabel67.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel67.setText("$");

        jTextField53.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextField53.setText("00");

        jLabel68.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel68.setText(".");

        jTextField54.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextField54.setText("00");

        jLabel57.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel57.setText("Name of Dish");

        jTextField27.setFont(new java.awt.Font("Tahoma", 0, 14));

        jLabel73.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel73.setText("Ingredients");

        try
		{
			jList3Model = new DefaultListModel();
			
			Ingredient[] ingredient = em.find(Ingredient.class);
			for(int i = 0; i < ingredient.length; i++){
				jList3Model.addElement(ingredient[i]);
			}
		}
		catch (SQLException e1)
		{
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}	

		jList3.setModel(jList3Model);
        jScrollPane6.setViewportView(jList3);

        jList4Model = new DefaultListModel();
		jList4.setModel(jList4Model);
        jScrollPane7.setViewportView(jList4);

        jLabel74.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel74.setText("Available Items");

        jLabel75.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel75.setText("Required Items");

        jButton5.setText(">>");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton6.setText("<<");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jTextField55.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextField55.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField55.setText("00");

        jLabel76.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel76.setText("UNITS");

        javax.swing.GroupLayout frmNewMenuItemLayout = new javax.swing.GroupLayout(frmNewMenuItem.getContentPane());
        frmNewMenuItem.getContentPane().setLayout(frmNewMenuItemLayout);
        frmNewMenuItemLayout.setHorizontalGroup(
            frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNewMenuItemLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(frmNewMenuItemLayout.createSequentialGroup()
                            .addComponent(jLabel53)
                            .addGap(28, 28, 28)
                            .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(frmNewMenuItemLayout.createSequentialGroup()
                                    .addComponent(jLabel67, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField53, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel68)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField54, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jLabel57)
                        .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, 310, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel56)
                        .addComponent(jLabel55)
                        .addComponent(jSeparator12)
                        .addGroup(frmNewMenuItemLayout.createSequentialGroup()
                            .addComponent(jButton15)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton16))
                        .addComponent(jTextField26, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmNewMenuItemLayout.createSequentialGroup()
                            .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(frmNewMenuItemLayout.createSequentialGroup()
                                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jButton5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
                                        .addComponent(jButton6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
                                        .addComponent(jTextField55, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmNewMenuItemLayout.createSequentialGroup()
                                            .addComponent(jLabel76)
                                            .addGap(14, 14, 14))))
                                .addComponent(jLabel74))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(frmNewMenuItemLayout.createSequentialGroup()
                                    .addComponent(jLabel75)
                                    .addGap(55, 55, 55))
                                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jLabel73))
                .addContainerGap(16, Short.MAX_VALUE))
        );
        frmNewMenuItemLayout.setVerticalGroup(
            frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNewMenuItemLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel57)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20)
                .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBox10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel53))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel56)
                    .addComponent(jLabel67)
                    .addComponent(jTextField53, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel68)
                    .addComponent(jTextField54, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel55)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator12, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(6, 6, 6)
                .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmNewMenuItemLayout.createSequentialGroup()
                        .addComponent(jLabel73)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel74)
                            .addComponent(jLabel75))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(47, 47, 47)
                        .addGroup(frmNewMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton15)
                            .addComponent(jButton16)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmNewMenuItemLayout.createSequentialGroup()
                        .addComponent(jLabel76)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton6)
                        .addGap(83, 83, 83)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        frmNewMenuItem.setBounds(430, 5, 340, 500);
        StockPanel1.add(frmNewMenuItem, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmEditMenuItem.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmEditMenuItem.setClosable(true);
        frmEditMenuItem.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmEditMenuItem.setTitle("EDIT MENU ITEM");
        frmEditMenuItem.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N
        frmEditMenuItem.setNormalBounds(new java.awt.Rectangle(430, 50, 340, 400));

        jLabel54.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel54.setText("Menu Category");

        jComboBox11.setFont(new java.awt.Font("Tahoma", 0, 14));
        jComboBox11.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Appetizer", "Main Course", "Dessert", "Beverage" }));

        jLabel65.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel65.setText("Dish Description");

        jTextField28.setFont(new java.awt.Font("Tahoma", 0, 14));

        jButton17.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton17.setText("Delete Item");
        jButton17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton17ActionPerformed(evt);
            }
        });

        jButton18.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton18.setText("Save Edits");
        jButton18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton18ActionPerformed(evt);
            }
        });

        jLabel66.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel66.setText("List Price");

        jLabel77.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel77.setText("$");

        jTextField56.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextField56.setText("00");

        jLabel78.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel78.setText(".");

        jTextField57.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextField57.setText("00");

        jLabel80.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel80.setText("Ingredients");

        try
		{
			jList5Model = new DefaultListModel();
			
			Ingredient[] ingredient = em.find(Ingredient.class);
			for(int i = 0; i < ingredient.length; i++){
				jList5Model.addElement(ingredient[i]);
			}
		}
		catch (SQLException e1)
		{
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}	

		jList5.setModel(jList5Model);
        jScrollPane8.setViewportView(jList5);

        try
		{
			jList6Model = new DefaultListModel();
			
			MenuItem[] menuitem = em.find(MenuItem.class);
			for(int i = 0; i < menuitem.length; i++){
				jList6Model.addElement(menuitem[i]);
			}
		}
		catch (SQLException e1)
		{
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}	

		jList6.setModel(jList6Model);
        jScrollPane9.setViewportView(jList6);

        jLabel81.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel81.setText("Available Items");

        jLabel82.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel82.setText("Required Items");

        jButton13.setText(">>");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        jButton14.setText("<<");
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });

        jTextField58.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextField58.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField58.setText("00");
        jTextField58.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField58ActionPerformed(evt);
            }
        });

        jLabel83.setFont(new java.awt.Font("Tahoma", 0, 10));
        jLabel83.setText("UNITS");

        jLabel79.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel79.setText("Menu Item");
        MenuItem[] existingItems = null;
        try
		{
			existingItems = em.find(MenuItem.class);
			jComboBox12.setFont(new java.awt.Font("Tahoma", 0, 14));
			jComboBox12.setModel(new javax.swing.DefaultComboBoxModel(existingItems));
			jComboBox12.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed( java.awt.event.ActionEvent evt )
				{
					jComboBox12ActionPerformed(evt);
				}
			});
			
			MenuItem currItem = (MenuItem) jComboBox12.getSelectedItem();
			
			jTextField28.setText(currItem.getDescription());
			jTextField56.setText((int)currItem.getPrice() + "");
			jTextField57.setText((int)((currItem.getPrice() * 100) % 100) + "");

			MenuItem currMenuItem = (MenuItem) jComboBox12.getSelectedItem();
			
			TrackIngredients.createIngredientMap(mapEditIngredients, currMenuItem.getIngredients());
			
			CreateIngredientLists.generateLists(currMenuItem, jList5, jList6, jList5Model, jList6Model, em);
		}
		catch (SQLException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		catch (NullPointerException e){
			
		}
        javax.swing.GroupLayout frmEditMenuItemLayout = new javax.swing.GroupLayout(frmEditMenuItem.getContentPane());
        frmEditMenuItem.getContentPane().setLayout(frmEditMenuItemLayout);
        frmEditMenuItemLayout.setHorizontalGroup(
            frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmEditMenuItemLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel66)
                        .addComponent(jLabel65)
                        .addComponent(jSeparator13)
                        .addGroup(frmEditMenuItemLayout.createSequentialGroup()
                            .addComponent(jButton17)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton18))
                        .addComponent(jTextField28, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmEditMenuItemLayout.createSequentialGroup()
                            .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(frmEditMenuItemLayout.createSequentialGroup()
                                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jButton13, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
                                        .addComponent(jButton14, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
                                        .addComponent(jTextField58, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmEditMenuItemLayout.createSequentialGroup()
                                            .addComponent(jLabel83)
                                            .addGap(14, 14, 14))))
                                .addComponent(jLabel81))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(frmEditMenuItemLayout.createSequentialGroup()
                                    .addComponent(jLabel82)
                                    .addGap(55, 55, 55))
                                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(frmEditMenuItemLayout.createSequentialGroup()
                            .addComponent(jLabel54)
                            .addGap(28, 28, 28)
                            .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(frmEditMenuItemLayout.createSequentialGroup()
                                    .addComponent(jLabel77, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField56, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel78)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextField57, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(jComboBox12, 0, 188, Short.MAX_VALUE)
                                .addComponent(jComboBox11, 0, 188, Short.MAX_VALUE))))
                    .addComponent(jLabel80)
                    .addComponent(jLabel79)
                    .addComponent(jSeparator14, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(16, Short.MAX_VALUE))
        );
        frmEditMenuItemLayout.setVerticalGroup(
            frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmEditMenuItemLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel54)
                    .addComponent(jComboBox11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel79)
                    .addComponent(jComboBox12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33)
                .addComponent(jSeparator14, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel66)
                    .addComponent(jLabel77)
                    .addComponent(jTextField56, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel78)
                    .addComponent(jTextField57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel65)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator13, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(6, 6, 6)
                .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmEditMenuItemLayout.createSequentialGroup()
                        .addComponent(jLabel80)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel81)
                            .addComponent(jLabel82))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(47, 47, 47)
                        .addGroup(frmEditMenuItemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton17)
                            .addComponent(jButton18)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmEditMenuItemLayout.createSequentialGroup()
                        .addComponent(jLabel83)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField58, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton14)
                        .addGap(83, 83, 83)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        frmEditMenuItem.setBounds(430, 5, 340, 500);
        StockPanel1.add(frmEditMenuItem, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmMenuCategories.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmMenuCategories.setClosable(true);
        frmMenuCategories.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmMenuCategories.setTitle("MENU CATEGORIES");
        frmMenuCategories.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N

        jButton19.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton19.setText("ADD");
        jButton19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton19ActionPerformed(evt);
            }
        });

        jLabel86.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel86.setText("Ordered Menu Categories");


        try
		{
			jList7Model = new DefaultListModel();
			
	        ItemCategory[] categories1 = em.find(ItemCategory.class);
			for(int i = 0; i < categories1.length; i++){
				jList7Model.addElement(categories1[i]);
			}
		}
		catch (SQLException e1)
		{
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}	

		jList7.setModel(jList7Model);
      
        jScrollPane10.setViewportView(jList7);

        jButton20.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton20.setText("REMOVE");
        jButton20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton20ActionPerformed(evt);
            }
        });

        jButton21.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton21.setText("MOVE UP");
        jButton21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton21ActionPerformed(evt);
            }
        });

        jButton22.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButton22.setText("MOVE DN");
        jButton22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton22ActionPerformed(evt);
            }
        });

        addCategoryTextField.setFont(new java.awt.Font("Tahoma", 0, 14));

        javax.swing.GroupLayout frmMenuCategoriesLayout = new javax.swing.GroupLayout(frmMenuCategories.getContentPane());
        frmMenuCategories.getContentPane().setLayout(frmMenuCategoriesLayout);
        frmMenuCategoriesLayout.setHorizontalGroup(
            frmMenuCategoriesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmMenuCategoriesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                        .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(frmMenuCategoriesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addGroup(frmMenuCategoriesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jButton22, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)
                                    .addComponent(jButton20, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)
                                    .addComponent(jButton19, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE)
                                    .addComponent(jButton21, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE))
                                .addGap(10, 10, 10))
                            .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(addCategoryTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
                                .addContainerGap())))
                    .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                        .addComponent(jLabel86)
                        .addContainerGap(312, Short.MAX_VALUE))))
        );
        frmMenuCategoriesLayout.setVerticalGroup(
            frmMenuCategoriesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(frmMenuCategoriesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                        .addComponent(addCategoryTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton19)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton21)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton22))
                    .addGroup(frmMenuCategoriesLayout.createSequentialGroup()
                        .addComponent(jLabel86)
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(133, Short.MAX_VALUE))
        );

        frmMenuCategories.setBounds(230, 50, 440, 360);
        StockPanel1.add(frmMenuCategories, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmViewMenu.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmViewMenu.setClosable(true);
        frmViewMenu.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmViewMenu.setTitle("View Menu");
        frmViewMenu.setFrameIcon(new 

javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png"))); // NOI18N
        frmViewMenu.setNormalBounds(new java.awt.Rectangle(280, 120, 620, 320));
        frmViewMenu.setPreferredSize(new java.awt.Dimension(620, 423));

        jTextPane1.setEditable(false);
        try{
	        String menuContent = "MENU\n\n";
	        MenuItem [] itemsArray = em.find(MenuItem.class);
	        ItemCategory[] categories = em.find(ItemCategory.class);
	        int numCat = categories.length;
	        for (int j=0 ; j<numCat ; j++){
		        
		        menuContent += categories[j].getName() + "s:\n____________________\n";
		        for (int f = 0; f<itemsArray.length ; f++){
		        	if (itemsArray[f].getItemCategory().equals(categories[j])){
		        		menuContent += itemsArray[f].getName() + "  $" + itemsArray[f].getPrice() + "\n" + itemsArray[f].getDescription()+" \n\n";
		        	}
		        }
	        
		        menuContent +="\n\n";
	        
	        }
	        jTextPane1.setFont(new java.awt.Font("Lucida Sans", 0, 11));
	        jTextPane1.setText(menuContent);
        
	    } catch(SQLException e){
	    	e.printStackTrace();
        }
        jScrollPane14.setViewportView(jTextPane1);

        javax.swing.GroupLayout frmViewMenuLayout = new javax.swing.GroupLayout(frmViewMenu.getContentPane());
        frmViewMenu.getContentPane().setLayout(frmViewMenuLayout);
        frmViewMenuLayout.setHorizontalGroup(
            frmViewMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmViewMenuLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE)
                .addContainerGap())
        );
        frmViewMenuLayout.setVerticalGroup(
            frmViewMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmViewMenuLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 266, Short.MAX_VALUE)
                .addContainerGap())
        );

        frmViewMenu.setBounds(280, 120, 350, 320);
        StockPanel1.add(frmViewMenu, javax.swing.JLayeredPane.DEFAULT_LAYER);
        
        javax.swing.GroupLayout panelMenuLayout = new javax.swing.GroupLayout(panelMenu);
        panelMenu.setLayout(panelMenuLayout);
        panelMenuLayout.setHorizontalGroup(
            panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMenuLayout.createSequentialGroup()
                .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jSeparator5, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelMenuLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(lblPlan3)))
                    .addGroup(panelMenuLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(StockPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 886, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelMenuLayout.setVerticalGroup(
            panelMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMenuLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblPlan3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(StockPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabSet.addTab("MENU", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png")), panelMenu); // NOI18N

        lblPlan4.setFont(new java.awt.Font("BankGothic Lt BT", 0, 48));
        lblPlan4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/phone-48x48.png"))); // NOI18N
        lblPlan4.setText("Reserve");

        lblNewReservation.setBackground(new java.awt.Color(255, 255, 255));
        lblNewReservation.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblNewReservation.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblNewReservation.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/phone-32x32.png"))); // NOI18N
        lblNewReservation.setText("New Reservation");
        lblNewReservation.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblNewReservation.setMaximumSize(new java.awt.Dimension(135, 38));
        lblNewReservation.setMinimumSize(new java.awt.Dimension(135, 38));
        lblNewReservation.setPreferredSize(new java.awt.Dimension(135, 38));
        lblNewReservation.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblNewReservationMouseClicked(evt);
            }
        });
        lblNewReservation.setBounds(10, 10, 150, 50);
        ReservePanel.add(lblNewReservation, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblEditReservation.setBackground(new java.awt.Color(255, 255, 255));
        lblEditReservation.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblEditReservation.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblEditReservation.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/phone-32x32.png"))); // NOI18N
        lblEditReservation.setText("Edit Reservation");
        lblEditReservation.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblEditReservation.setMaximumSize(new java.awt.Dimension(131, 38));
        lblEditReservation.setMinimumSize(new java.awt.Dimension(131, 38));
        lblEditReservation.setPreferredSize(new java.awt.Dimension(131, 38));
        lblEditReservation.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblEditReservationMouseClicked(evt);
            }
        });
        lblEditReservation.setBounds(720, 10, 150, 50);
        ReservePanel.add(lblEditReservation, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblViewReservations.setBackground(new java.awt.Color(255, 255, 255));
        lblViewReservations.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblViewReservations.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblViewReservations.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/phone-32x32.png"))); // NOI18N
        lblViewReservations.setText("View Reservations");
        lblViewReservations.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblViewReservations.setMaximumSize(new java.awt.Dimension(148, 38));
        lblViewReservations.setMinimumSize(new java.awt.Dimension(148, 38));
        lblViewReservations.setPreferredSize(new java.awt.Dimension(148, 38));
        lblViewReservations.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblViewReservationsMouseClicked(evt);
            }
        });
        lblViewReservations.setBounds(720, 440, 150, 50);
        ReservePanel.add(lblViewReservations, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmNewReservation.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmNewReservation.setClosable(true);
        frmNewReservation.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmNewReservation.setTitle("New Reservation");
        frmNewReservation.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/phone-32x32.png"))); // NOI18N
        frmNewReservation.setMinimumSize(new java.awt.Dimension(88, 34));
        frmNewReservation.setNormalBounds(new java.awt.Rectangle(430, 50, 340, 360));
        frmNewReservation.setPreferredSize(new java.awt.Dimension(84, 34));

        jLabelResName.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelResName.setText("Name");
        jLabelResName.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabelResName.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabelResName.setPreferredSize(new java.awt.Dimension(78, 17));

        jTextFieldResName.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldResName.setPreferredSize(new java.awt.Dimension(22, 23));
        jTextFieldResName.setSelectionEnd(2);
        jTextFieldResName.setSelectionStart(2);

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel2.setText("Date");
        jLabel2.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabel2.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabel2.setPreferredSize(new java.awt.Dimension(78, 17));

        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel3.setText("Time");
        jLabel3.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabel3.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabel3.setPreferredSize(new java.awt.Dimension(78, 17));

        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel4.setText("# of people");
        jLabel4.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabel4.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabel4.setPreferredSize(new java.awt.Dimension(78, 17));

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel5.setText("Notes");
        jLabel5.setMaximumSize(new java.awt.Dimension(78, 14));
        jLabel5.setMinimumSize(new java.awt.Dimension(78, 14));
        jLabel5.setPreferredSize(new java.awt.Dimension(78, 14));

        jTextFieldNewResDate.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldNewResDate.setText("dd/mm/yy");

        jTextFieldNewResTime.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldNewResTime.setText("hh:mm");

        jTextFieldNumPeople.setFont(new java.awt.Font("Tahoma", 0, 14));

        jTextFieldResNotes.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldResNotes.setPreferredSize(new java.awt.Dimension(22, 23));
        jTextFieldResNotes.setSelectionEnd(2);
        jTextFieldResNotes.setSelectionStart(2);

        jButtonClearNewRes.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButtonClearNewRes.setText("Clear");

        
        jButtonFindTable.setFont(new java.awt.Font("Tahoma", 0, 14));
        jButtonFindTable.setText("Find Table");
        jButtonFindTable.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
            	jButtonFindTableActionPerformed(evt);
            }
        });

        jLabelResName1.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelResName1.setText("Phone #");
        jLabelResName1.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabelResName1.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabelResName1.setPreferredSize(new java.awt.Dimension(78, 17));

        jTextFieldResName1.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldResName1.setPreferredSize(new java.awt.Dimension(22, 23));
        jTextFieldResName1.setSelectionEnd(2);
        jTextFieldResName1.setSelectionStart(2);

        javax.swing.GroupLayout frmNewReservationLayout = new javax.swing.GroupLayout(frmNewReservation.getContentPane());
        frmNewReservation.getContentPane().setLayout(frmNewReservationLayout);
        frmNewReservationLayout.setHorizontalGroup(
            frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNewReservationLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelResName1, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelResName, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextFieldNumPeople, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(frmNewReservationLayout.createSequentialGroup()
                        .addComponent(jButtonClearNewRes)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 102, Short.MAX_VALUE)
                        .addComponent(jButtonFindTable))
                    .addComponent(jTextFieldResNotes, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                    .addComponent(jTextFieldResName1, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                    .addComponent(jTextFieldResName, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)
                    .addGroup(frmNewReservationLayout.createSequentialGroup()
                        .addComponent(jTextFieldNewResDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(48, 48, 48)
                        .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNewResTime, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        frmNewReservationLayout.setVerticalGroup(
            frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNewReservationLayout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldResName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelResName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldResName1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelResName1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldNewResDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldNewResTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(32, 32, 32)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldNumPeople, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldResNotes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(frmNewReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonClearNewRes)
                    .addComponent(jButtonFindTable))
                .addContainerGap(33, Short.MAX_VALUE))
        );

        frmNewReservation.setBounds(340, 50, 340, 360);
        ReservePanel.add(frmNewReservation, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmEditReservation.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmEditReservation.setClosable(true);
        frmEditReservation.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmEditReservation.setTitle("Edit Reservation");
        frmEditReservation.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/phone-32x32.png"))); // NOI18N
        frmEditReservation.setMinimumSize(new java.awt.Dimension(88, 34));
        frmEditReservation.setNormalBounds(new java.awt.Rectangle(430, 50, 340, 360));
        frmEditReservation.setPreferredSize(new java.awt.Dimension(84, 34));

        jLabelEditResName.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelEditResName.setText("Name");
        jLabelEditResName.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabelEditResName.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabelEditResName.setPreferredSize(new java.awt.Dimension(78, 17));

        jLabelEditResDate.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelEditResDate.setText("Date");
        jLabelEditResDate.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabelEditResDate.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabelEditResDate.setPreferredSize(new java.awt.Dimension(78, 17));

        jLabelEditResTime.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelEditResTime.setText("Time");
        jLabelEditResTime.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabelEditResTime.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabelEditResTime.setPreferredSize(new java.awt.Dimension(78, 17));

        jLabelEditResNumPeople.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelEditResNumPeople.setText("# of people");
        jLabelEditResNumPeople.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabelEditResNumPeople.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabelEditResNumPeople.setPreferredSize(new java.awt.Dimension(78, 17));

        jLabelEditResNotes.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelEditResNotes.setText("Notes");
        jLabelEditResNotes.setMaximumSize(new java.awt.Dimension(78, 14));
        jLabelEditResNotes.setMinimumSize(new java.awt.Dimension(78, 14));
        jLabelEditResNotes.setPreferredSize(new java.awt.Dimension(78, 14));

        jTextFieldEditResDate.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldEditResDate.setText("dd/mm/yy");

        jTextFieldEditResTime.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldEditResTime.setText("hh:mm");

        jTextFieldEditResNumPeople.setFont(new java.awt.Font("Tahoma", 0, 14));

        jTextFieldEditResNotes.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldEditResNotes.setPreferredSize(new java.awt.Dimension(22, 23));
        jTextFieldEditResNotes.setSelectionEnd(2);
        jTextFieldEditResNotes.setSelectionStart(2);

        jButtonEditResDelete.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButtonEditResDelete.setText("Delete");
        jButtonEditResDelete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEditResDeleteActionPerformed(evt);
            }
        });
        jButtonEditResSaveChanges.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jButtonEditResSaveChanges.setText("Save Changes");

        jComboBoxResName.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabelEditResName1.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelEditResName1.setText("Phone #");
        jLabelEditResName1.setMaximumSize(new java.awt.Dimension(78, 17));
        jLabelEditResName1.setMinimumSize(new java.awt.Dimension(78, 17));
        jLabelEditResName1.setPreferredSize(new java.awt.Dimension(78, 17));

        jTextFieldEditResNotes1.setFont(new java.awt.Font("Tahoma", 0, 14));
        jTextFieldEditResNotes1.setPreferredSize(new java.awt.Dimension(22, 23));
        jTextFieldEditResNotes1.setSelectionEnd(2);
        jTextFieldEditResNotes1.setSelectionStart(2);

        javax.swing.GroupLayout frmEditReservationLayout = new javax.swing.GroupLayout(frmEditReservation.getContentPane());
        frmEditReservation.getContentPane().setLayout(frmEditReservationLayout);
        frmEditReservationLayout.setHorizontalGroup(
            frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmEditReservationLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(frmEditReservationLayout.createSequentialGroup()
                        .addComponent(jLabelEditResName, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jComboBoxResName, 0, 22, Short.MAX_VALUE)
                        .addGap(220, 220, 220))
                    .addGroup(frmEditReservationLayout.createSequentialGroup()
                        .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelEditResNotes, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelEditResDate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, frmEditReservationLayout.createSequentialGroup()
                                .addGap(59, 59, 59)
                                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(frmEditReservationLayout.createSequentialGroup()
                                        .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jTextFieldEditResNumPeople, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, frmEditReservationLayout.createSequentialGroup()
                                                .addGap(1, 1, 1)
                                                .addComponent(jTextFieldEditResDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                        .addGap(26, 26, 26)
                                        .addComponent(jLabelEditResTime, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jTextFieldEditResTime))
                                    .addComponent(jTextFieldEditResNotes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addComponent(jLabelEditResNumPeople, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, frmEditReservationLayout.createSequentialGroup()
                                .addComponent(jLabelEditResName1, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextFieldEditResNotes1, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE))
                            .addGroup(frmEditReservationLayout.createSequentialGroup()
                                .addComponent(jButtonEditResDelete)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 110, Short.MAX_VALUE)
                                .addComponent(jButtonEditResSaveChanges)))
                        .addContainerGap(41, Short.MAX_VALUE))))
        );
        frmEditReservationLayout.setVerticalGroup(
            frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmEditReservationLayout.createSequentialGroup()
                .addContainerGap(53, Short.MAX_VALUE)
                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEditResName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBoxResName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEditResName1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldEditResNotes1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEditResDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldEditResDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelEditResTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldEditResTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEditResNumPeople, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldEditResNumPeople, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEditResNotes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldEditResNotes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(63, 63, 63)
                .addGroup(frmEditReservationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEditResSaveChanges)
                    .addComponent(jButtonEditResDelete))
                .addGap(26, 26, 26))
        );

        frmEditReservation.setBounds(230, 50, 500, 360);
        ReservePanel.add(frmEditReservation, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmViewReservations.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmViewReservations.setClosable(true);
        frmViewReservations.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmViewReservations.setTitle("View Reservations");
        frmViewReservations.setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/disk-9-32x32.png"))); // NOI18N

        try{
        	Reservation createdRes[] = em.find(Reservation.class);
        	String[][] resSpecs = new String[createdRes.length][4];
        	long longDate;
        	for(int i = 0; i < resSpecs.length; i++){
        		longDate = createdRes[i].getTime();
	        	Calendar theDate = Calendar.getInstance();
	        	theDate.setTimeInMillis(longDate);
	        	String date = new String("");
	        	String day = "" + theDate.getTime().getDate();
	        	String month = "" + (theDate.getTime().getMonth() + 1);
	        	if(day.length() < 2){
	        		day = "" + 0 + day;
	        	}
	        	if(month.length() < 2){
	        		month = "" + 0 + month;
	        	}
	        	date += day + "\\" + month + "\\" + (theDate.getTime().getYear() - 100 + 2000)
	        				+ " at " + theDate.getTime().getHours() + ":" + theDate.getTime().getMinutes();
	        	//jTextFieldEditResDate.setText(date);

        		resSpecs[i][0] = createdRes[i].getName();
        		resSpecs[i][1] = date;
        		resSpecs[i][2] = "" + createdRes[i].getNumOfSeats();
        		resSpecs[i][3] = createdRes[i].getPhoneNumber();
        		//resSpecs[i][4] = createdRes[i].getNotes();
        	}
        	jTable3.setModel(new javax.swing.table.DefaultTableModel(
        		resSpecs,
	            new String [] {
	                "Name", "Date (DD\\MM\\YYYY)", "# People", "Phone Number"
	            }
	        ));
	        jScrollPane4.setViewportView(jTable3);
        } catch(SQLException e){

        }


        javax.swing.GroupLayout frmViewReservationsLayout = new javax.swing.GroupLayout(frmViewReservations.getContentPane());
        frmViewReservations.getContentPane().setLayout(frmViewReservationsLayout);
        frmViewReservationsLayout.setHorizontalGroup(
            frmViewReservationsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, frmViewReservationsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 596, Short.MAX_VALUE)
                .addContainerGap())
        );
        frmViewReservationsLayout.setVerticalGroup(
            frmViewReservationsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmViewReservationsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        frmViewReservations.setBounds(90, 20, 620, 310);
        ReservePanel.add(frmViewReservations, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout panelReserveLayout = new javax.swing.GroupLayout(panelReserve);
        panelReserve.setLayout(panelReserveLayout);
        panelReserveLayout.setHorizontalGroup(
            panelReserveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelReserveLayout.createSequentialGroup()
                .addGroup(panelReserveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelReserveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jSeparator6, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelReserveLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(lblPlan4)))
                    .addGroup(panelReserveLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(ReservePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 886, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelReserveLayout.setVerticalGroup(
            panelReserveLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelReserveLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblPlan4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ReservePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabSet.addTab("RESERVE", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/phone-32x32.png")), panelReserve); // NOI18N

        lblPlan5.setFont(new java.awt.Font("BankGothic Lt BT", 0, 48));
        lblPlan5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/food-48x48.png"))); // NOI18N
        lblPlan5.setText("Serve");

        ServePanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        cmdOrder.setBackground(new java.awt.Color(255, 255, 255));
        cmdOrder.setFont(new java.awt.Font("Tahoma", 0, 12));
        cmdOrder.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        cmdOrder.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N
        cmdOrder.setText("Vacate Table");
        cmdOrder.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        cmdOrder.setMaximumSize(new java.awt.Dimension(135, 38));
        cmdOrder.setMinimumSize(new java.awt.Dimension(135, 38));
        cmdOrder.setPreferredSize(new java.awt.Dimension(135, 38));
        cmdOrder.setBounds(670, 220, 150, 50);
        ServePanel.add(cmdOrder, javax.swing.JLayeredPane.DEFAULT_LAYER);

        cmdSeat.setBackground(new java.awt.Color(255, 255, 255));
        cmdSeat.setFont(new java.awt.Font("Tahoma", 0, 12));
        cmdSeat.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        cmdSeat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/food-32x32.png"))); // NOI18N
        cmdSeat.setText("Seat Client");
        cmdSeat.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        cmdSeat.setMaximumSize(new java.awt.Dimension(135, 38));
        cmdSeat.setMinimumSize(new java.awt.Dimension(135, 38));
        cmdSeat.setPreferredSize(new java.awt.Dimension(135, 38));
        cmdSeat.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cmdSeatMouseClicked(evt);
            }
        });
        cmdSeat.setBounds(30, 220, 150, 50);
        ServePanel.add(cmdSeat, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblDate.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
        lblDate.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblDate.setText("Saturday, March 21, 2009");
        lblDate.setBounds(10, 10, 860, 44);
        ServePanel.add(lblDate, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jSeparator1.setBounds(10, 280, 860, 10);
        ServePanel.add(jSeparator1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblTime.setFont(new java.awt.Font("Tahoma", 0, 36));
        lblTime.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblTime.setText("17:00");
        lblTime.setBounds(10, 60, 860, 44);
        ServePanel.add(lblTime, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jSeparator11.setBounds(10, 110, 860, 10);
        ServePanel.add(jSeparator11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        spnWaiterList.setFont(new java.awt.Font("Tahoma", 0, 24));
        spnWaiterList.setBounds(10, 120, 290, 80);
        spnWaiterList.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                spnWaiterListMouseClicked(evt);
            }

			private void spnWaiterListMouseClicked( MouseEvent evt )
			{
				serveUpdater.getServeManager().setCurrentWaiter(spnWaiterList.getSelectedIndex());
				
			}
        });
        ServePanel.add(spnWaiterList, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblWaiterSeats.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblWaiterSeats.setText("Seats being serviced");
        lblWaiterSeats.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        lblWaiterSeats.setBounds(310, 180, 230, 17);
        ServePanel.add(lblWaiterSeats, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblWaiterName.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblWaiterName.setText("Lastname, Firstname");
        lblWaiterName.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        lblWaiterName.setBounds(310, 120, 230, 20);
        ServePanel.add(lblWaiterName, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblWaiterTime.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblWaiterTime.setText("Shift Time");
        lblWaiterTime.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        lblWaiterTime.setBounds(310, 140, 230, 17);
        ServePanel.add(lblWaiterTime, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblWaiterTables.setFont(new java.awt.Font("Tahoma", 1, 14));
        lblWaiterTables.setText("Tables being serviced");
        lblWaiterTables.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        lblWaiterTables.setBounds(310, 160, 230, 17);
        ServePanel.add(lblWaiterTables, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jSeparator15.setBounds(10, 210, 860, 10);
        ServePanel.add(jSeparator15, javax.swing.JLayeredPane.DEFAULT_LAYER);

        cmdOrder1.setBackground(new java.awt.Color(255, 255, 255));
        cmdOrder1.setFont(new java.awt.Font("Tahoma", 0, 12));
        cmdOrder1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        cmdOrder1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png"))); // NOI18N
        cmdOrder1.setText("Enter Order");
        cmdOrder1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        cmdOrder1.setMaximumSize(new java.awt.Dimension(135, 38));
        cmdOrder1.setMinimumSize(new java.awt.Dimension(135, 38));
        cmdOrder1.setPreferredSize(new java.awt.Dimension(135, 38));
        cmdOrder1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cmdOrder1MouseClicked(evt);
            }

			private void cmdOrder1MouseClicked( MouseEvent evt )
			{
				serveUpdater.getServeManager().drawAssignedTables(pnlSeat, spnWaiterList);		
			}
        });
        cmdOrder1.setBounds(190, 220, 150, 50);
        ServePanel.add(cmdOrder1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        cmdOrder2.setBackground(new java.awt.Color(255, 255, 255));
        cmdOrder2.setFont(new java.awt.Font("Tahoma", 0, 12));
        cmdOrder2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        cmdOrder2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/Credit-32x32.png"))); // NOI18N
        cmdOrder2.setText("Complete Order");
        cmdOrder2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        cmdOrder2.setMaximumSize(new java.awt.Dimension(135, 38));
        cmdOrder2.setMinimumSize(new java.awt.Dimension(135, 38));
        cmdOrder2.setPreferredSize(new java.awt.Dimension(135, 38));
        cmdOrder2.setBounds(350, 220, 150, 50);
        ServePanel.add(cmdOrder2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        cmdOrder3.setBackground(new java.awt.Color(255, 255, 255));
        cmdOrder3.setFont(new java.awt.Font("Tahoma", 0, 12));
        cmdOrder3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        cmdOrder3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/pie-chart-32x32.png"))); // NOI18N
        cmdOrder3.setText("Generate Invoice");
        cmdOrder3.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        cmdOrder3.setMaximumSize(new java.awt.Dimension(135, 38));
        cmdOrder3.setMinimumSize(new java.awt.Dimension(135, 38));
        cmdOrder3.setPreferredSize(new java.awt.Dimension(135, 38));
        cmdOrder3.setBounds(510, 220, 150, 50);
        ServePanel.add(cmdOrder3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        pnlSeat.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        lstOrderItems.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        lstOrderItems.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        lstOrderItems.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
            	lstOrderItemsMouseClicked(evt);
            }

			private void lstOrderItemsMouseClicked( MouseEvent evt )
			{
				serveUpdater.getServeManager().drawAssignedTables(pnlSeat, spnWaiterList);
				serveUpdater.getServeManager().setCurrentItem(lstOrderItems.getSelectedIndex());
			}
        });
        lstOrderItems.setSelectionForeground(new java.awt.Color(0, 153, 255));
        jScrollPane15.setViewportView(lstOrderItems);

        javax.swing.GroupLayout pnlSeatLayout = new javax.swing.GroupLayout(pnlSeat);
        pnlSeat.setLayout(pnlSeatLayout);
        pnlSeatLayout.setHorizontalGroup(
            pnlSeatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlSeatLayout.createSequentialGroup()
                .addContainerGap(561, Short.MAX_VALUE)
                .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 287, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        pnlSeatLayout.setVerticalGroup(
            pnlSeatLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlSeatLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlSeat.setBounds(10, 290, 860, 250);
        ServePanel.add(pnlSeat, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout panelServeLayout = new javax.swing.GroupLayout(panelServe);
        panelServe.setLayout(panelServeLayout);
        panelServeLayout.setHorizontalGroup(
            panelServeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelServeLayout.createSequentialGroup()
                .addGroup(panelServeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelServeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jSeparator7, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelServeLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(lblPlan5)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelServeLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(ServePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 886, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelServeLayout.setVerticalGroup(
            panelServeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelServeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblPlan5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ServePanel, javax.swing.GroupLayout.DEFAULT_SIZE, 551, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabSet.addTab("SERVE", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/food-32x32.png")), panelServe); // NOI18N

        lblPlan6.setFont(new java.awt.Font("BankGothic Lt BT", 0, 48));
        lblPlan6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/pie-chart-48x48.png"))); // NOI18N
        lblPlan6.setText("Review");

        reviewPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        reviewPanel.setForeground(new java.awt.Color(207, 248, 124));

        lblStaffExpenses.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/User-32x32.png"))); // NOI18N
        lblStaffExpenses.setText("Staff Expenses");
        lblStaffExpenses.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblStaffExpenses.addMouseListener(new java.awt.event.MouseAdapter() {
        	public void mouseClicked(java.awt.event.MouseEvent evt){
        		lblStaffExpensesMouseClicked(evt);
        	}
        });
        lblStaffExpenses.setBounds(10, 10, 160, 50);
        reviewPanel.add(lblStaffExpenses, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblStockExpenses.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/food-32x32.png"))); // NOI18N
        lblStockExpenses.setText("Stock Expenses");
        lblStockExpenses.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblStockExpenses.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblStockExpensesMouseClicked(evt);
            }
        });
        lblStockExpenses.setBounds(720, 10, 150, 50);
        reviewPanel.add(lblStockExpenses, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblFoodIncome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/hamburger-32x32.png"))); // NOI18N
        lblFoodIncome.setText("Food Income");
        lblFoodIncome.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblFoodIncome.addMouseListener(new java.awt.event.MouseAdapter(){
        	public void mouseClicked(java.awt.event.MouseEvent evt) {
        		lblFoodIncomeMouseClicked(evt);
        	}
        });
        lblFoodIncome.setBounds(10, 500, 124, 50);
        reviewPanel.add(lblFoodIncome, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblNetIncome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/pie-chart-32x32.png"))); // NOI18N
        lblNetIncome.setText("Net Income");
        lblNetIncome.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        lblNetIncome.addMouseListener(new java.awt.event.MouseAdapter(){
        	public void mouseClicked(java.awt.event.MouseEvent evt) {
        		lblNetIncomeMouseClicked(evt);
        	}
        });
        lblNetIncome.setBounds(750, 500, 116, 50);
        reviewPanel.add(lblNetIncome, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmStaffExpenses.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmStaffExpenses.setClosable(true);
        frmStaffExpenses.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmStaffExpenses.setTitle("Staff Expenses");
        
        StaffPaymentTracker staffTracker = new StaffPaymentTracker(em);
        tblStaffExpenses.setModel(new javax.swing.table.DefaultTableModel(
        	staffTracker.getStaffPaymentArray(),
            new String [] {
                "Name", "Wage", "Hours Worked", "Amount Paid"
            }
        ));
        jScrollPane15.setViewportView(tblStaffExpenses);

        javax.swing.GroupLayout frmStaffExpensesLayout = new javax.swing.GroupLayout(frmStaffExpenses.getContentPane());
        frmStaffExpenses.getContentPane().setLayout(frmStaffExpensesLayout);
        frmStaffExpensesLayout.setHorizontalGroup(
            frmStaffExpensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmStaffExpensesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 562, Short.MAX_VALUE)
                .addContainerGap())
        );
        frmStaffExpensesLayout.setVerticalGroup(
            frmStaffExpensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmStaffExpensesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)
                .addContainerGap())
        );

        frmStaffExpenses.setBounds(140, 70, 590, 420);
        reviewPanel.add(frmStaffExpenses, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmStockExpenses.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmStockExpenses.setClosable(true);
        frmStockExpenses.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmStockExpenses.setTitle("Stock Expenses Table");
        
        StockPaymentTracker stockTracker = new StockPaymentTracker(em);
        tblStockExpenses.setModel(new javax.swing.table.DefaultTableModel(
            stockTracker.getStockExpenseArray(),
            new String [] {
                "Name", "Price", "Quantity", "Cost"
            }
        ));
        jScrollPane18.setViewportView(tblStockExpenses);

        javax.swing.GroupLayout frmStockExpensesLayout = new javax.swing.GroupLayout(frmStockExpenses.getContentPane());
        frmStockExpenses.getContentPane().setLayout(frmStockExpensesLayout);
        frmStockExpensesLayout.setHorizontalGroup(
            frmStockExpensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmStockExpensesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 582, Short.MAX_VALUE)
                .addContainerGap())
        );
        frmStockExpensesLayout.setVerticalGroup(
            frmStockExpensesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmStockExpensesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE)
                .addContainerGap())
        );

        frmStockExpenses.setBounds(140, 90, 610, 370);
        reviewPanel.add(frmStockExpenses, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmFoodIncome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmFoodIncome.setClosable(true);
        frmFoodIncome.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmFoodIncome.setTitle(" Food Income Table");

        MenuIncomeTracker menuTracker = new MenuIncomeTracker(em);
        tblFoodIncome.setModel(new javax.swing.table.DefaultTableModel(
            menuTracker.getMenuIncomeArray(),
            new String [] {
                "Name", "Times Ordered", "Cost", "Income from Item"
            }
        ));
        jScrollPane16.setViewportView(tblFoodIncome);

        javax.swing.GroupLayout frmFoodIncomeLayout = new javax.swing.GroupLayout(frmFoodIncome.getContentPane());
        frmFoodIncome.getContentPane().setLayout(frmFoodIncomeLayout);
        frmFoodIncomeLayout.setHorizontalGroup(
            frmFoodIncomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmFoodIncomeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE)
                .addContainerGap())
        );
        frmFoodIncomeLayout.setVerticalGroup(
            frmFoodIncomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmFoodIncomeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
                .addContainerGap())
        );

        frmFoodIncome.setBounds(160, 90, 570, 350);
        reviewPanel.add(frmFoodIncome, javax.swing.JLayeredPane.DEFAULT_LAYER);

        frmNetIncome.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        frmNetIncome.setClosable(true);
        frmNetIncome.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        frmNetIncome.setTitle("Net Income Table");
        
        NetIncomeTracker incomeTracker = new NetIncomeTracker(staffTracker.getStaffPaymentArray(), stockTracker.getStockExpenseArray(), menuTracker.getMenuIncomeArray());
        tblNetIncome.setModel(new javax.swing.table.DefaultTableModel(
            incomeTracker.getNetIncomeArray(),
            new String [] {
                "Food Income", "Staff Expenses", "Stock Expenses", "Net Income"
            }
        ));
        
        DefaultTableCellRenderer dtcr = new DefaultTableCellRenderer();
        dtcr.getTableCellRendererComponent(tblNetIncome, "Food Income", true, false, 0, 0).setBackground(Color.GREEN);
        jScrollPane17.setViewportView(tblNetIncome);

        javax.swing.GroupLayout frmNetIncomeLayout = new javax.swing.GroupLayout(frmNetIncome.getContentPane());
        frmNetIncome.getContentPane().setLayout(frmNetIncomeLayout);
        frmNetIncomeLayout.setHorizontalGroup(
            frmNetIncomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNetIncomeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE)
                .addContainerGap())
        );
        frmNetIncomeLayout.setVerticalGroup(
            frmNetIncomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(frmNetIncomeLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
                .addContainerGap())
        );

        frmNetIncome.setBounds(160, 110, 570, 360);
        reviewPanel.add(frmNetIncome, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout panelReviewLayout = new javax.swing.GroupLayout(panelReview);
        panelReview.setLayout(panelReviewLayout);
        panelReviewLayout.setHorizontalGroup(
            panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelReviewLayout.createSequentialGroup()
                .addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jSeparator8, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panelReviewLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(lblPlan6)))
                    .addGroup(panelReviewLayout.createSequentialGroup()
                        .addGap(12, 12, 12)
                        .addComponent(reviewPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 883, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelReviewLayout.setVerticalGroup(
            panelReviewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelReviewLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblPlan6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(reviewPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 562, Short.MAX_VALUE)
                .addContainerGap())
        );

        tabSet.addTab("REVIEW", new javax.swing.ImageIcon(getClass().getResource("/resources/graphics/pie-chart-32x32.png")), panelReview); // NOI18N
        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabel1.setText("DinnerMate Restaurant Management");

        toolbar.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        toolbar.setFloatable(false);
        toolbar.setRollover(true);
        toolbar.setMargin(new java.awt.Insets(0, 100, 0, 0));

        lblStatus.setFont(new java.awt.Font("Lucida Console", 0, 12));
        lblStatus.setText("Ready");
        toolbar.add(lblStatus);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(toolbar, javax.swing.GroupLayout.DEFAULT_SIZE, 911, Short.MAX_VALUE)
                    .addComponent(jLabel1)
                    .addComponent(tabSet, javax.swing.GroupLayout.PREFERRED_SIZE, 911, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(tabSet, javax.swing.GroupLayout.DEFAULT_SIZE, 692, Short.MAX_VALUE)
                .addGap(4, 4, 4)
                .addComponent(toolbar, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void tabSetMouseMoved( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_tabSetMouseMoved
	// TODO add your handling code here:
	}// GEN-LAST:event_tabSetMouseMoved

	private void lblCreateNewStaffMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblCreateNewStaffMouseClicked
		// display staff creation form
		frmCreateNewStaff.setVisible(true);
	}// GEN-LAST:event_lblCreateNewStaffMouseClicked

	private void lblEditCurrentStaffMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblEditCurrentStaffMouseClicked
		// show edit form
		frmEditCurrentStaff.setVisible(true);
	}// GEN-LAST:event_lblEditCurrentStaffMouseClicked

	private void lblViewStaffRosterMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblViewStaffRosterMouseClicked
		// show roster form
		frmViewStaffRoster.setVisible(true);
	}// GEN-LAST:event_lblViewStaffRosterMouseClicked

	private void lblViewInventoryListMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblViewInventoryListMouseClicked
		// show inventory table
		frmViewInventoryList.setVisible(true);
	}// GEN-LAST:event_lblViewInventoryListMouseClicked

	private void lblNewStockEntryMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblNewStockEntryMouseClicked
		// show new stock form
		frmNewStockEntry.setVisible(true);
	}// GEN-LAST:event_lblNewStockEntryMouseClicked

	private void lblAdjustStockMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblAdjustStockMouseClicked
		// show stock adjust form
		frmAdjustStock.setVisible(true);
	}// GEN-LAST:event_lblAdjustStockMouseClicked

	private void lblEditStockEntryMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblEditStockEntryMouseClicked
		// show stock edit form
		frmEditStockEntry.setVisible(true);
	}// GEN-LAST:event_lblEditStockEntryMouseClicked

	private void jComboBox5ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jComboBox5ActionPerformed
		Ingredient currIng = (Ingredient) jComboBox5.getSelectedItem();
		if ((currIng) != null)
        {
			jComboBox4.setSelectedItem(((Ingredient)jComboBox5.getSelectedItem()).getUnit());
			jTextField47.setText((int)currIng.getPrice() + "");
			jTextField48.setText((int)((currIng.getPrice() * 100) % 100) + "");
			jTextField17.setText(new Float(((Ingredient)jComboBox5.getSelectedItem()).getQuantity()).toString());
			jTextField22.setText(currIng.getNotes());
        }
	}// GEN-LAST:event_jComboBox5ActionPerformed

	private void lblViewInventoryList1MouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblViewInventoryList1MouseClicked
		frmViewMenu.setVisible(true);
	}// GEN-LAST:event_lblViewInventoryList1MouseClicked

	private void lblAddMenuItemMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblAddMenuItemMouseClicked
		// show new menu item form
		frmNewMenuItem.setVisible(true);
	}// GEN-LAST:event_lblAddMenuItemMouseClicked

	private void lblEditMenuItemMouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblEditMenuItemMouseClicked
		// show edit menu item form
		frmEditMenuItem.setVisible(true);
	}// GEN-LAST:event_lblEditMenuItemMouseClicked

	private void lblEditStockEntry1MouseClicked( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_lblEditStockEntry1MouseClicked
		// show category editor form
		frmMenuCategories.setVisible(true);
	}// GEN-LAST:event_lblEditStockEntry1MouseClicked

	// PRICE VALIDATION
	private void jButton5ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton5ActionPerformed
		TrackIngredients ingredientMap = new TrackIngredients((Ingredient)jList3.getSelectedValue(), Integer.parseInt(jTextField55.getText()));
		jList4Model.add(0, jList3.getSelectedValue());

		jList3Model.remove(jList3.getSelectedIndex());

		mapIngredients.add(ingredientMap);
	}// GEN-LAST:event_jButton5ActionPerformed

	private void jButton6ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton6ActionPerformed
		jList3Model.add(0, jList4.getSelectedValue());

		TrackIngredients.removeIngredient(mapIngredients, (Ingredient)jList4.getSelectedValue());

		jList4Model.remove(jList4.getSelectedIndex());
	}// GEN-LAST:event_jButton6ActionPerformed

	private void jButton13ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton13ActionPerformed
		//TrackIngredients ingredientMap = new TrackIngredients((Ingredient)jList5.getSelectedValue(), Integer.parseInt(jTextField55.getText()));
		MenuItemIngredient mii;
		try
		{
			mii = em.create(MenuItemIngredient.class);
			mii.setIngredient((Ingredient)jList5.getSelectedValue());
			mii.setQuantity(Integer.parseInt(jTextField55.getText()));
			mii.setMenuItem((MenuItem) jComboBox12.getSelectedItem());
			mii.save();

			((DefaultListModel) jList6.getModel()).add(0, mii);
		}
		catch (SQLException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		((DefaultListModel) jList5.getModel()).remove(jList5.getSelectedIndex());

	//	mapEditIngredients.add(ingredientMap);
	}// GEN-LAST:event_jButton13ActionPerformed

	private void jButton14ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton14ActionPerformed

		((DefaultListModel) jList5.getModel()).add(0, ((MenuItemIngredient)jList6.getSelectedValue()).getIngredient());

		//TrackIngredients.removeIngredient(mapEditIngredients, (Ingredient)jList6.getSelectedValue(), (MenuItem)jComboBox12.getSelectedItem(), em);
		try
		{
			em.delete((MenuItemIngredient)jList6.getSelectedValue());
		}
		catch (SQLException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		((DefaultListModel) jList6.getModel()).remove(jList6.getSelectedIndex());
	}// GEN-LAST:event_jButton14ActionPerformed

	private void jTextField58ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jTextField58ActionPerformed
	// TODO add your handling code here:
	}// GEN-LAST:event_jTextField58ActionPerformed

	private void jComboBox12ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jComboBox12ActionPerformed
		//String selMenuItem = (String) jComboBox12.getSelectedItem();
		MenuItem currMenuItem = (MenuItem) jComboBox12.getSelectedItem();

		jTextField28.setText(currMenuItem.getDescription());
		jTextField56.setText((int)currMenuItem.getPrice() + "");
		jTextField57.setText((int)((currMenuItem.getPrice() * 100) % 100) + "");
		CreateIngredientLists.generateLists(currMenuItem, jList5, jList6, jList5Model, jList6Model, em);

	}// GEN-LAST:event_jComboBox12ActionPerformed
	private void jButton17ActionPerformed( java.awt.event.ActionEvent evt )
	{
		try
	    {
		   MenuItem mi = (MenuItem) jComboBox12.getSelectedItem();
		   em.delete(mi);

	    }
	    catch (SQLException e)
	    {
	    }
	}
	
	
	private void jButton18ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton18ActionPerformed
		if ((tbv.validateTextBox(jTextField56, 4) +
			    tbv.validateTextBox(jTextField57, 4))==0) {
			MenuItem mi = (MenuItem) jComboBox12.getSelectedItem();

			mi.setDescription(jTextField28.getText());
			mi.setPrice((float) (Integer.parseInt(jTextField56.getText()) + Integer.parseInt(jTextField57
						.getText()) * 0.01));
			mi.save();
		}


	}// GEN-LAST:event_jButton18ActionPerformed

	private void jButton19ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton19ActionPerformed
			jList7Model.add(jList7Model.size(), addCategoryTextField.getText());
			try{
				EntityManager em = DBManager.getEntityManager();
				ItemCategory nc = em.create(ItemCategory.class);
				nc.setName(addCategoryTextField.getText());
				nc.save();
				addCategoryTextField.setText("");
			}
			catch (SQLException e)
			{
				e.printStackTrace();
			}
		}
	// GEN-LAST:event_jButton19ActionPerformed

	private void jButton20ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton20ActionPerformed
		if(jList7.getSelectedValue()!= null){
			try
		    {
				ItemCategory currcat = (ItemCategory) jList7Model.get(jList7.getSelectedIndex());
			    em.delete(currcat);
			    jList7Model.remove(jList7.getSelectedIndex());
			}
		    catch (SQLException e)
		    {
		    }
		}
	}// GEN-LAST:event_jButton20ActionPerformed

	private void jButton21ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton21ActionPerformed
		if (jList7.getSelectedIndex() > 0 && jList7.getSelectedIndex()<jList7Model.size()){
			int index = jList7.getSelectedIndex();
			String temp = (String)(jList7Model.get(index).toString());
			jList7Model.remove(index);
			jList7Model.add(index-1, temp);
	//		jList7.setSelectedIndex(index-1);
		}
	}// GEN-LAST:event_jButton21ActionPerformed

	private void jButton22ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton22ActionPerformed
		int index = jList7.getSelectedIndex();
		if(index!=-1 && index < jList7Model.size()-1){
			String temp = (String)(jList7Model.get(index).toString());
			jList7Model.remove(index);
			jList7Model.add(index+1, temp);
			jList7.setSelectedIndex(index+1);
		}
	}// GEN-LAST:event_jButton22ActionPerformed

	private void panelPlanMouseMoved( java.awt.event.MouseEvent evt )
	{// GEN-FIRST:event_panelPlanMouseMoved
		lblStatus.setText("Visually define the restaurant layout.");
	}// GEN-LAST:event_panelPlanMouseMoved

	private void btnStaffClearActionPerformed(java.awt.event.ActionEvent evt) {

		txtNewStaffFirstName.setText("");
		txtNewStaffLastName.setText("");
		txtNewStaffDollars.setText("");
		txtNewStaffCents.setText("");
		txtNewStaffAddress.setText("");
		txtNewStaffPhone.setText("");
		txtNewStaffEmail.setText("");
		txtNewStaffNotes.setText("");
    }

	private void txtNewStaffCentsActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

	private void txtNewStaffDollarsActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

	private void cmbNewStaffPosActionPerformed(java.awt.event.ActionEvent evt) {
	        // TODO add your handling code here:
	}

	private void btnDeleteStaffActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_btnDeleteStaffActionPerformed
		   try
		    {
			   StaffMember sm = (StaffMember) cmbStaff.getSelectedItem();
			   em.delete(sm);
			   cmbStaff.setSelectedItem(null);
			   txtEditStaffDollars.setText("");
			   txtEditStaffCents.setText("");
			   txtEditStaffPhone.setText("");
			   txtEditStaffAddress.setText("");
			   txtEditStaffEmail.setText("");
			   txtEditStaffNotes.setText("");
		    }
		    catch (SQLException e)
		    {
		    }
		}//GEN-LAST:event_btnDeleteStaffActionPerformed


	 private void btnSaveStaffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveStaffActionPerformed
		if ((tbv.validateTextBox(txtEditStaffDollars, 3) +
			    tbv.validateTextBox(txtEditStaffCents, 4) +
			 //  tbv.validateTextBox(txtEditStaffAddress, 6) +
			    tbv.validateTextBox(txtEditStaffPhone, 2) +
			    tbv.validateTextBox(txtEditStaffEmail, 1))==0) {
			        // Validation passed... code here.

			StaffMember smm = (StaffMember) cmbStaff.getSelectedItem();
			smm.setWage((float) (Integer.parseInt(txtEditStaffDollars.getText()) + Integer.parseInt(txtEditStaffCents
					.getText()) * 0.01));
			smm.setAddress(txtEditStaffAddress.getText());
			smm.setPhoneNumber(txtEditStaffPhone.getText());
			smm.setEmail(txtEditStaffEmail.getText());
			smm.setPosition((Position) cmbEditStaffPos.getSelectedItem());
			smm.save();
		}

	}//GEN-LAST:event_btnSaveStaffActionPerformed

	private void cmbStaffActionPerformed(java.awt.event.ActionEvent evt)
	{
		StaffMember currSmem = (StaffMember) cmbStaff.getSelectedItem();


		if ((currSmem) != null)
        {
			cmbEditStaffPos.setSelectedItem(currSmem.getPosition());
			txtEditStaffAddress.setText(currSmem.getAddress());
			txtEditStaffPhone.setText(currSmem.getPhoneNumber());
			txtEditStaffEmail.setText(currSmem.getEmail());
			txtEditStaffDollars.setText((int)currSmem.getWage() + "");
			txtEditStaffCents.setText((int)((currSmem.getWage() * 100) % 100) + "");

        }
    }


	private void txtEditStaffDollarsActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

	private void txtEditStaffCentsActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

	private void jButton16ActionPerformed( java.awt.event.ActionEvent evt )
	{// GEN-FIRST:event_jButton16ActionPerformed
		// TODO add your handling code here:
		/*PriceValidator checkDoubleDigit = new PriceValidator();
		if (!checkDoubleDigit.validate(jTextField53.getText()))
		{
			JOptionPane.showMessageDialog(null, jTextField53.getText() + " is not a valid entry", "Invalid Entry",
					JOptionPane.ERROR_MESSAGE);
		}
		else if (!checkDoubleDigit.validate(jTextField54.getText()))
		{
			JOptionPane.showMessageDialog(null, jTextField54.getText() + " is not a valid entry", "Invalid Entry",
					JOptionPane.ERROR_MESSAGE);
		}
		else
		{*/
		if ((//tbv.validateTextBox(jTextField27, 1) +
			    tbv.validateTextBox(jTextField53, 4) +
			    tbv.validateTextBox(jTextField54, 4))==0) {
			        // Validation passed... code here.
			try
			{
				MenuItem mi = DBManager.getEntityManager().create(MenuItem.class);
				//MenuItemIngredient mii = DBManager.getEntityManager().create(MenuItemIngredient.class);

				mi.setName(jTextField27.getText());
				mi.setPrice((float) (Integer.parseInt(jTextField53.getText()) + Integer.parseInt(jTextField54
						.getText()) * 0.01));
				mi.setDescription(jTextField26.getText());

				mi.setItemCategory((ItemCategory) jComboBox10.getSelectedItem());
				mi.save();

				MenuItemIngredient[] miis = new MenuItemIngredient[jList4.getModel().getSize()];
				for (int i = 0; i < jList4.getModel().getSize(); i++)
				{
					miis[i] = DBManager.getEntityManager().create(MenuItemIngredient.class);
					miis[i].setIngredient(mapIngredients.get(i).getIngredient());
					miis[i].setQuantity(mapIngredients.get(i).getQuantity());
					miis[i].setMenuItem(mi);
					miis[i].save();
				}
				
				
			}
			catch (SQLException e)
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}

		}
	}// GEN-LAST:event_jButton16ActionPerformed

	private void jButton15ActionPerformed( java.awt.event.ActionEvent evt){
		try
		{
			jList3Model = new DefaultListModel();

			Ingredient[] ingredient = em.find(Ingredient.class);
			for(int i = 0; i < ingredient.length; i++){
				jList3Model.addElement(ingredient[i]);
			}
		}
		catch (SQLException e1)
		{
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}

		jList4Model = new DefaultListModel();

		jTextField27.setText("");
		jTextField26.setText("");
		jTextField54.setText("");
		jTextField53.setText("");
	}

	private void jButton7ActionPerformed(java.awt.event.ActionEvent evt){//GEN-FIRST:event_jButton7ActionPerformed
		   try
		    {
			   Ingredient ing = (Ingredient) jComboBox5.getSelectedItem();
			   em.delete(ing);
			   jComboBox4.setSelectedItem(null);
			   jComboBox5.setSelectedItem(null);
			   jTextField22.setText("");
			   jTextField48.setText("");
			   jTextField47.setText("");
			   jTextField17.setText("");
			}
		    catch (SQLException e)
		    {

		    }
		}//GEN-LAST:event_jButton7ActionPerformed

	private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) 
	{
		if ((tbv.validateTextBox(jTextField47, 4) +
				tbv.validateTextBox(jTextField48, 4))==0)
		{
			Ingredient ing = (Ingredient) jComboBox5.getSelectedItem();
			ing.setUnit((String)jComboBox4.getSelectedItem());
	    	ing.setQuantity(Float.valueOf(jTextField17.getText()).floatValue());
	    	ing.setPrice((float)(Integer.parseInt(jTextField47.getText()) + Integer.parseInt(jTextField48.getText())*0.01));
	    	ing.setNotes(jTextField22.getText());
	    	ing.save();
	    }
	}//GEN-LAST:event_jButton8ActionPerformed

private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
		jTextField24.setText("");
		jTextField23.setText("");
		jTextField18.setText("00");
		jTextField49.setText("00");
     	jTextField50.setText("00");
// TODO add your handling code here:
}//GEN-LAST:event_jButton11ActionPerformed
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) 
{//GEN-FIRST:event_jButton9ActionPerformed
	float x = Float.valueOf(jTextField17.getText()).floatValue();
	if(jComboBox4.getSelectedItem().equals("Units"))
		x++;
		else
		{
		x+=0.1;
		x = (float)Math.round(x*10.0f)/10.0f;
		}
	jTextField17.setText(Float.toString(x));
}
private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) 
{//GEN-FIRST:event_jButton10ActionPerformed
	float x = Float.valueOf(jTextField17.getText()).floatValue();
	if(jComboBox4.getSelectedItem().equals("Units"))
		x--;
		else
		{
			x-=0.1;
			x = (float)Math.round(x*10.0f)/10.0f;
		}
	jTextField17.setText(Float.toString(x));
	
}
private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
	if ((tbv.validateTextBox(jTextField24, 0) +
			tbv.validateTextBox(jTextField49, 4) +
			tbv.validateTextBox(jTextField50, 4) +
			tbv.validateTextBox(jTextField18, 4))==0)
	{
   try
    {
	Ingredient ing = DBManager.getEntityManager().create(Ingredient.class);
	ing.setName(jTextField24.getText());
        ing.setUnit((String)jComboBox7.getSelectedItem());
        ing.setQuantity(Float.valueOf(jTextField18.getText()).floatValue());
        ing.setPrice((float)(Integer.parseInt(jTextField49.getText()) + Integer.parseInt(jTextField50.getText())*0.01));
	ing.setNotes(jTextField23.getText());
	ing.save();

    }
    catch (SQLException e)
    {
        e.printStackTrace();
    }
	}
}//GEN-LAST:event_jButton12ActionPerformed

private void jButtonFindTableActionPerformed(java.awt.event.ActionEvent evt){
	//System.out.println("in find table");
	if ((tbv.validateTextBox(jTextFieldNumPeople, 5) + tbv.validateTextBox(jTextFieldResName1, 2))!=0) {

	}
	else{	        // Validation passed... code here.
		try{
			Reservation res = DBManager.getEntityManager().create(Reservation.class);
		//	System.out.println("after create res");

			res.setName(jTextFieldResName.getText());
			res.setNumOfSeats(Integer.parseInt(jTextFieldNumPeople.getText()));
			String empty = "";
			String phoneNumber = jTextFieldResName1.getText();
			for(int i = 0; i < phoneNumber.length(); i++){
				if(!Character.isDigit(phoneNumber.charAt(i))){
					for(int j = 0; j < phoneNumber.length(); j++){
						if(Character.isDigit(phoneNumber.charAt(j))){
							empty += phoneNumber.charAt(j);
						}
					}
					phoneNumber = empty;
				}
			}

			res.setPhoneNumber(phoneNumber);

			Calendar resDate = Calendar.getInstance();
			resDate.setTime(CalendarManagement.snapMinutes(calendar1.getDate()));
			res.setTime(resDate.getTimeInMillis());
		/*
			if(ReservationLogic.findReservation(resDate.getTimeInMillis(), CalendarManagement.findEndTime(resDate.getTime(), Integer.parseInt(jTextFieldNewResDuration.getText())).getTime(), Integer.parseInt(jTextFieldNumPeople.getText())) != null){
				res.save();
			}
			else{
				JOptionPane.showMessageDialog(null, "There are no tables of that size available at the requested time", "Error",  JOptionPane.ERROR_MESSAGE);
			}

			*/
			res.save();
		//	System.out.println("about to save reservation");

		}
		catch(SQLException e){

		}
	}
}

private void jButtonClearNewResActionPerformed(java.awt.event.ActionEvent evt){
	jTextFieldResName.setText("");
	jTextFieldNewResDate.setText("dd/mm/yyyy");
	jTextFieldResName1.setText("");
	jTextFieldNewResTime.setText("hh:mm");
	jTextFieldNumPeople.setText("");
	jTextFieldResNotes.setText("");
}

private void jButtonEditResSaveChangesActionPerformed(java.awt.event.ActionEvent evt){
	Reservation currRes = (Reservation) jComboBoxResName.getSelectedItem();

	currRes.setNumOfSeats(Integer.parseInt(jTextFieldEditResNumPeople.getText()));
	currRes.setPhoneNumber(jTextFieldEditResNotes1.getText());

	String day = "";
	String month = "";
	String year = "";

	Calendar resDate = Calendar.getInstance();

	resDate.setTime(CalendarManagement.snapMinutes(calendar2.getDate()));
	currRes.setTime(resDate.getTimeInMillis());
/*
	if(ReservationLogic.findReservation(resDate.getTimeInMillis(), CalendarManagement.findEndTime(resDate.getTime(), Integer.parseInt(jTextFieldEditResTime.getText())).getTime(), Integer.parseInt(jTextFieldEditResNumPeople.getText())) != null){
		currRes.save();
	}
	else{
		JOptionPane.showMessageDialog(null, "There are no tables of that size available at the requested time", "Error",  JOptionPane.ERROR_MESSAGE);
	}*/
	currRes.save();
}

private void jComboBoxResNameActionPerformed( java.awt.event.ActionEvent evt ){
	//jTextFieldEditResNumPeople.setText("" + currRes.getNumOfSeats());
    //jTextFieldEditResNotes1
    Reservation currRes = (Reservation) jComboBoxResName.getSelectedItem();
    jTextFieldEditResNumPeople.setText("" + currRes.getNumOfSeats());
    jTextFieldEditResNotes1.setText(currRes.getPhoneNumber());


	long dateLong = currRes.getTime();
	Calendar theDate = Calendar.getInstance();
	theDate.setTimeInMillis(dateLong);
	calendar2.setDate(theDate.getTime());
}

private void lblNewReservationMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblNewReservationMouseClicked
// TODO add your handling code here:
    frmNewReservation.setVisible(true);
}//GEN-LAST:event_lblNewReservationMouseClicked

private void jButtonEditResDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEditResDeleteActionPerformed
// TODO add your handling code here:
	try
    {
		Reservation currRes = (Reservation) jComboBoxResName.getSelectedItem();
	   em.delete(currRes);
	}
    catch (SQLException e)
    {

    }
	

}//GEN-LAST:event_jButtonEditResDeleteActionPerformed

private void lblEditReservationMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblEditReservationMouseClicked
// TODO add your handling code here:
    frmEditReservation.setVisible(true);
}//GEN-LAST:event_lblEditReservationMouseClicked

private void lblViewReservationsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblViewReservationsMouseClicked
// TODO add your handling code here:
    frmViewReservations.setVisible(true);
}//GEN-LAST:event_lblViewReservationsMouseClicked

private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
    buildCalendar(jComboBox1.getSelectedIndex(),jComboBox2.getSelectedIndex()+2008);
    populateStaff();
}//GEN-LAST:event_jComboBox1ActionPerformed

private void jPanel1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jPanel1FocusGained
    // TODO add your handling code here:
}//GEN-LAST:event_jPanel1FocusGained

private void jList2MouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList2MouseDragged
    setCursor(moveCursor);
    jList2.setEnabled(false);
    lastBin = jList2;
}//GEN-LAST:event_jList2MouseDragged

private void dayMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_dayMouseReleased

}//GEN-LAST:event_dayMouseReleased

private void day1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_day1MouseReleased

}//GEN-LAST:event_day1MouseReleased

private void day2MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_day2MouseReleased

}//GEN-LAST:event_day2MouseReleased

private void day3MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_day3MouseReleased

}//GEN-LAST:event_day3MouseReleased

private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox2ActionPerformed
    buildCalendar(jComboBox1.getSelectedIndex(),jComboBox2.getSelectedIndex()+2008);
    populateStaff();
}//GEN-LAST:event_jComboBox2ActionPerformed

private void jList8MouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList8MouseDragged
    setCursor(moveCursor);
    jList8.setEnabled(false);
    lastBin = jList8;
}//GEN-LAST:event_jList8MouseDragged

private void jList9MouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList9MouseDragged
    setCursor(moveCursor);
    jList9.setEnabled(false);
    lastBin = jList9;
}//GEN-LAST:event_jList9MouseDragged

private void jList10MouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList10MouseDragged
    setCursor(moveCursor);
    jList10.setEnabled(false);
    lastBin = jList10;
}//GEN-LAST:event_jList10MouseDragged

private void cmdSeatMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cmdSeatMouseClicked
	serveUpdater.getServeManager().drawTables(pnlSeat,spnWaiterList);
}//GEN-LAST:event_cmdSeatMouseClicked


private void btnCreateStaffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCreateStaffActionPerformed
    if ((tbv.validateTextBox(txtNewStaffFirstName, 0) +
				tbv.validateTextBox(txtNewStaffLastName, 0) +
				tbv.validateTextBox(txtNewStaffDollars, 3) +
			    tbv.validateTextBox(txtNewStaffCents, 4) +
			   // tbv.validateTextBox(txtNewStaffAddress, 4) +
			    tbv.validateTextBox(txtNewStaffPhone, 2) +
			    tbv.validateTextBox(txtNewStaffEmail, 1))==0)
		{
			        // Validation passed... code here.
				try
			    {
				EntityManager em = DBManager.getEntityManager();
				StaffMember sm = em.create(StaffMember.class);

				sm.setFirstName(txtNewStaffFirstName.getText());
				sm.setLastName(txtNewStaffLastName.getText());
				sm.setUserName(sm.getFullName().toLowerCase());
				sm.setPassword(sm.getFirstName().toLowerCase());
				//sm.setPassword("cool");
				sm.setWage((float) (Integer.parseInt(txtNewStaffDollars.getText()) + Integer.parseInt(txtNewStaffCents
						.getText()) * 0.01));
				sm.setAddress(txtNewStaffAddress.getText());
				sm.setPhoneNumber(txtNewStaffPhone.getText());
				sm.setEmail(txtNewStaffEmail.getText());

				// Get position from db to link with this position.
				// Not currently working.
				// Dropdown of positions should get info from db.

				Position[] ps = em.find(Position.class);
				Position position = null;
				for (Position p : ps)
				{
					// If the name matched the entry in the database save the position.
					if (p.getName().equals(cmbNewStaffPos.getSelectedItem()))
					{
						position = p;
						break;
					}
				}

				// Attempt to set the position, if it is null then handle the exception.
				try {
					sm.setPosition(position);
				}
				catch (NullPointerException npe)
				{
					System.out.println("Position in dropdown does not exist in db.");
					npe.printStackTrace();
				}

				sm.save();
			}
			catch (SQLException e)
			{
				System.out.println("ERROR SAVING STAFF MEMBER!");
				e.printStackTrace();
			}

		}
}//GEN-LAST:event_btnCreateStaffActionPerformed

private void amMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_amMouseReleased
    if ((getCursor()==moveCursor)&&(!(number.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_amMouseReleased

private void pmMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pmMouseReleased
    if ((getCursor()==moveCursor)&&(!(number.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pmMouseReleased

private void am1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am1MouseReleased
    if ((getCursor()==moveCursor)&&(!(number1.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number1.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am1MouseReleased

private void pm1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm1MouseReleased
    if ((getCursor()==moveCursor)&&(!(number1.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number1.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm1MouseReleased

private void am2MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am2MouseReleased
    if ((getCursor()==moveCursor)&&(!(number2.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number2.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am2MouseReleased

private void pm2MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm2MouseReleased
    if ((getCursor()==moveCursor)&&(!(number2.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number2.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm2MouseReleased

private void am3MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am3MouseReleased
    if ((getCursor()==moveCursor)&&(!(number3.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number3.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am3MouseReleased

private void pm3MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm3MouseReleased
    if ((getCursor()==moveCursor)&&(!(number3.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number3.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm3MouseReleased

private void am4MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am4MouseReleased
    if ((getCursor()==moveCursor)&&(!(number4.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number4.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am4MouseReleased

private void pm4MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm4MouseReleased
    if ((getCursor()==moveCursor)&&(!(number4.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number4.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm4MouseReleased

private void am5MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am5MouseReleased
    if ((getCursor()==moveCursor)&&(!(number5.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number5.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am5MouseReleased

private void pm5MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm5MouseReleased
    if ((getCursor()==moveCursor)&&(!(number5.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number5.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm5MouseReleased

private void am6MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am6MouseReleased
    if ((getCursor()==moveCursor)&&(!(number6.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number6.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am6MouseReleased

private void pm6MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm6MouseReleased
    if ((getCursor()==moveCursor)&&(!(number6.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number6.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm6MouseReleased

private void am7MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am7MouseReleased
    if ((getCursor()==moveCursor)&&(!(number7.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number7.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am7MouseReleased

private void pm7MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm7MouseReleased
    if ((getCursor()==moveCursor)&&(!(number7.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number7.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm7MouseReleased

private void am8MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am8MouseReleased
    if ((getCursor()==moveCursor)&&(!(number8.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number8.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am8MouseReleased

private void pm8MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm8MouseReleased
    if ((getCursor()==moveCursor)&&(!(number8.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number8.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm8MouseReleased

private void am9MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am9MouseReleased
    if ((getCursor()==moveCursor)&&(!(number9.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number9.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am9MouseReleased

private void pm9MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm9MouseReleased
    if ((getCursor()==moveCursor)&&(!(number9.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number9.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm9MouseReleased

private void am10MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am10MouseReleased
    if ((getCursor()==moveCursor)&&(!(number10.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number10.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am10MouseReleased

private void pm10MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm10MouseReleased
    if ((getCursor()==moveCursor)&&(!(number10.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number10.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm10MouseReleased

private void am11MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am11MouseReleased
    if ((getCursor()==moveCursor)&&(!(number11.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number11.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am11MouseReleased

private void pm11MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm11MouseReleased
    if ((getCursor()==moveCursor)&&(!(number11.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number11.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm11MouseReleased

private void am12MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am12MouseReleased
    if ((getCursor()==moveCursor)&&(!(number12.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number12.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am12MouseReleased

private void pm12MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm12MouseReleased
    if ((getCursor()==moveCursor)&&(!(number12.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number12.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm12MouseReleased

private void am13MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am13MouseReleased
    if ((getCursor()==moveCursor)&&(!(number13.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number13.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am13MouseReleased

private void pm13MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm13MouseReleased
    if ((getCursor()==moveCursor)&&(!(number13.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number13.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm13MouseReleased

private void am14MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am14MouseReleased
    if ((getCursor()==moveCursor)&&(!(number14.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number14.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am14MouseReleased

private void pm14MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm14MouseReleased
    if ((getCursor()==moveCursor)&&(!(number14.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number14.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm14MouseReleased

private void am15MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am15MouseReleased
    if ((getCursor()==moveCursor)&&(!(number15.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number15.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am15MouseReleased

private void pm15MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm15MouseReleased
    if ((getCursor()==moveCursor)&&(!(number15.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number15.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm15MouseReleased

private void am16MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am16MouseReleased
    if ((getCursor()==moveCursor)&&(!(number16.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number16.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am16MouseReleased

private void pm16MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm16MouseReleased
    if ((getCursor()==moveCursor)&&(!(number16.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number16.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm16MouseReleased

private void am17MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am17MouseReleased
    if ((getCursor()==moveCursor)&&(!(number17.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number17.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am17MouseReleased

private void pm17MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm17MouseReleased
    if ((getCursor()==moveCursor)&&(!(number17.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number17.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm17MouseReleased

private void am18MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am18MouseReleased
    if ((getCursor()==moveCursor)&&(!(number18.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number18.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am18MouseReleased

private void pm18MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm18MouseReleased
    if ((getCursor()==moveCursor)&&(!(number18.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number18.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm18MouseReleased

private void am19MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am19MouseReleased
    if ((getCursor()==moveCursor)&&(!(number19.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number19.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am19MouseReleased

private void pm19MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm19MouseReleased
    if ((getCursor()==moveCursor)&&(!(number19.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number19.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm19MouseReleased

private void am20MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am20MouseReleased
    if ((getCursor()==moveCursor)&&(!(number20.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number20.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am20MouseReleased

private void pm20MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm20MouseReleased
    if ((getCursor()==moveCursor)&&(!(number20.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number20.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm20MouseReleased

private void am22MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am22MouseReleased
    if ((getCursor()==moveCursor)&&(!(number22.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number22.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am22MouseReleased

private void pm22MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm22MouseReleased
    if ((getCursor()==moveCursor)&&(!(number22.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number22.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm22MouseReleased

private void am23MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am23MouseReleased
    if ((getCursor()==moveCursor)&&(!(number23.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number23.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am23MouseReleased

private void pm23MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm23MouseReleased
    if ((getCursor()==moveCursor)&&(!(number23.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number23.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm23MouseReleased

private void am24MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am24MouseReleased
    if ((getCursor()==moveCursor)&&(!(number24.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number24.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am24MouseReleased

private void pm24MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm24MouseReleased
    if ((getCursor()==moveCursor)&&(!(number24.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number24.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm24MouseReleased

private void am25MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am25MouseReleased
    if ((getCursor()==moveCursor)&&(!(number25.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number25.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am25MouseReleased

private void pm25MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm25MouseReleased
    if ((getCursor()==moveCursor)&&(!(number25.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number25.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm25MouseReleased

private void am26MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am26MouseReleased
    if ((getCursor()==moveCursor)&&(!(number26.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number26.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am26MouseReleased

private void pm26MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm26MouseReleased
    if ((getCursor()==moveCursor)&&(!(number26.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number26.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm26MouseReleased

private void am27MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am27MouseReleased
    if ((getCursor()==moveCursor)&&(!(number27.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number27.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am27MouseReleased

private void pm27MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm27MouseReleased
    if ((getCursor()==moveCursor)&&(!(number27.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number27.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm27MouseReleased

private void am28MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_am28MouseReleased
    if ((getCursor()==moveCursor)&&(!(number28.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number28.getText())),lastBin,0);
    }
    setCursor(defCursor);
}//GEN-LAST:event_am28MouseReleased

private void pm28MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_pm28MouseReleased
    if ((getCursor()==moveCursor)&&(!(number28.getText().equals("")))) {
        addToShift(getCalDate(Integer.parseInt(number28.getText())),lastBin,1);
    }
    setCursor(defCursor);
}//GEN-LAST:event_pm28MouseReleased

private void cmdBuildCalendar1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cmdBuildCalendar1MouseClicked
	buildCalendar(jComboBox1.getSelectedIndex(),jComboBox2.getSelectedIndex()+2008);
    populateStaff();
}//GEN-LAST:event_cmdBuildCalendar1MouseClicked

private void cmdBuildCalendar2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cmdBuildCalendar2MouseClicked
	buildCalendar2(jComboBox1.getSelectedIndex(),jComboBox2.getSelectedIndex()+2008);
    populateStaff();
}//GEN-LAST:event_cmdBuildCalendar2MouseClicked

private void lstDeleteMouseDragged(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lstDeleteMouseDragged
    setCursor(moveCursor);
    lstDelete.setEnabled(false);
    lastBin = lstDelete;
}//GEN-LAST:event_lstDeleteMouseDragged

private void lblStockExpensesMouseClicked(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here:
    frmStockExpenses.setVisible(true);
}

private void lblStaffExpensesMouseClicked(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here:
    frmStaffExpenses.setVisible(true);
}

private void lblFoodIncomeMouseClicked(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here:
    frmFoodIncome.setVisible(true);
}

private void lblNetIncomeMouseClicked(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here:
    frmNetIncome.setVisible(true);
}
	/**
	 * @param args
	 *            the command line arguments
	 */
	public static void main( String args[] )
	{
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run()
			{
				new HomeScreen().setVisible(true);
			}
		});
	}

    public void buildCalendar(int month, int year) {
	    // find first box and iterate through month
	    sm.buildMonth(month, year);
	    int startBox = sm.getStartBox();
	    int box = 0;
	    int boxDay = 1;
	    int shiftDate = 0;
	    String shiftDate_s;
	
	    // control array via hard coding
	    javax.swing.JLabel[] numbers = {number, number1, number2,number3,number4,number5,number6,number7,number8,number9,number10,number11,number12,number13,number14,number15,number16,number17,number18,number19,number20, number22, number23, number24, number25, number26, number27, number28};
	    javax.swing.JLabel[] ams = {am, am1, am2,am3,am4,am5,am6,am7,am8,am9,am10,am11,am12,am13,am14,am15,am16,am17,am18,am19,am20, am22, am23, am24, am25, am26, am27, am28};
	    javax.swing.JLabel[] pms = {pm, pm1, pm2,pm3,pm4,pm5,pm6,pm7,pm8,pm9,pm10,pm11,pm12,pm13,pm14,pm15,pm16,pm17,pm18,pm19,pm20, pm22, pm23, pm24, pm25, pm26, pm27, pm28};
	
	    while (box<numbers.length) {
	        try {
	            shifts = em.find(Shift.class);
	        }
	        catch (SQLException e)
	        {
			        e.printStackTrace();
	        }
	        if (box>=startBox) {
	            numbers[box].setText(boxDay+"");
	            boxDay++;
	        }
	        else {
	            numbers[box].setText("");
	        }
	        ams[box].setForeground(Color.BLUE);
	        ams[box].setText("");
	        pms[box].setForeground(Color.RED);
	        pms[box].setText("");
	        // read in shifts for current day
	        for (int b = 0; b<shifts.length; b++) {
	            if (!(numbers[box].getText().equals(""))) {
	                shiftDate_s = getCalDate(Integer.parseInt(numbers[box].getText()));
	
	                shiftDate = Integer.parseInt(shiftDate_s);
	               if ((shifts[b].getDate()+"").equals(shiftDate_s)) {
	                    shiftStaff = shifts[b].getStaffMembers();
	                    for (int c=0; c<shiftStaff.length; c++) {
	                        if (shifts[b].getType().getID() == 0) {
	                            ams[box].setText(ams[box].getText()+" "+(shiftStaff[c].getFirstName().charAt(0))+(shiftStaff[c].getLastName().charAt(0)));
	                        }
	                        else {
	                            pms[box].setText(pms[box].getText()+" "+(shiftStaff[c].getFirstName().charAt(0))+(shiftStaff[c].getLastName().charAt(0)));
	
	                        }
	                    }
	               }
	            }
	        }
	        box++;
	    }
    }
    
    public void buildCalendar2(int month, int year) {
    	// build calendar's first page
    	buildCalendar(month, year);
	    // find first box and iterate through month
    	int lastDay = Integer.parseInt(number28.getText());
	    sm.buildMonth2(month, year, lastDay);
	    int startBox = sm.getStartBox();
	    int box = 0;
	    int boxDay = lastDay+1;
	    int shiftDate = 0;
	    String shiftDate_s;
	
	    // control array via hard coding
	    javax.swing.JLabel[] numbers = {number, number1, number2,number3,number4,number5,number6,number7,number8,number9,number10,number11,number12,number13,number14,number15,number16,number17,number18,number19,number20, number22, number23, number24, number25, number26, number27, number28};
	    javax.swing.JLabel[] ams = {am, am1, am2,am3,am4,am5,am6,am7,am8,am9,am10,am11,am12,am13,am14,am15,am16,am17,am18,am19,am20, am22, am23, am24, am25, am26, am27, am28};
	    javax.swing.JLabel[] pms = {pm, pm1, pm2,pm3,pm4,pm5,pm6,pm7,pm8,pm9,pm10,pm11,pm12,pm13,pm14,pm15,pm16,pm17,pm18,pm19,pm20, pm22, pm23, pm24, pm25, pm26, pm27, pm28};
	
	    while (box<numbers.length) {
	        try {
	            shifts = em.find(Shift.class);
	        }
	        catch (SQLException e)
	        {
			        e.printStackTrace();
	        }
	        if ((box>=startBox)&&(boxDay<31)) {
	            numbers[box].setText(boxDay+"");
	            boxDay++;
	        }
	        else {
	            numbers[box].setText("");
	        }
	        ams[box].setForeground(Color.BLUE);
	        ams[box].setText("");
	        pms[box].setForeground(Color.RED);
	        pms[box].setText("");
	        // read in shifts for current day
	        for (int b = 0; b<shifts.length; b++) {
	            if (!(numbers[box].getText().equals(""))) {
	                shiftDate_s = getCalDate(Integer.parseInt(numbers[box].getText()));
	
	                shiftDate = Integer.parseInt(shiftDate_s);
	               if ((shifts[b].getDate()+"").equals(shiftDate_s)) {
	                    shiftStaff = shifts[b].getStaffMembers();
	                    for (int c=0; c<shiftStaff.length; c++) {
	                        if (shifts[b].getType().getID() == 0) {
	                            ams[box].setText(ams[box].getText()+" "+(shiftStaff[c].getFirstName().charAt(0))+(shiftStaff[c].getLastName().charAt(0)));
	                        }
	                        else {
	                            pms[box].setText(pms[box].getText()+" "+(shiftStaff[c].getFirstName().charAt(0))+(shiftStaff[c].getLastName().charAt(0)));
	
	                        }
	                    }
	               }
	            }
	        }
	        box++;
	    }
    }

    public void addToShift(String date, javax.swing.JList list, int amPm) {
        Shift newShift;
        StaffMember selStaff = null;
        Shift[] allShifts = {};
        int shiftId=0;
        int shiftType=0;
        ShiftType[] types = {};
        try {
        	allShifts = em.find(Shift.class);
        }
        catch (SQLException e){
        	e.printStackTrace();
        }
        try {
        	types = em.find(ShiftType.class);
        }
        catch (SQLException e){
        	e.printStackTrace();
        }
        // find staff member ID we need
        for (int a=0; a<staff.length; a++) {
            if (staff[a].getLastName().equals(list.getSelectedValue())) {
                selStaff = staff[a];
            }
        }

        // check if shift exists
        for (int a=0; a<allShifts.length; a++) {
        	if ((allShifts[a].getDate()==Integer.parseInt(date))&&(allShifts[a].getType().getID()==(amPm+1))) {
        		shiftId = a;
                shiftType = allShifts[a].getType().getID();
        		break;
        	}
        }
        // if no matching staff, we must be deleting!
        if (selStaff==null) {
            // add to already existing shift
            if (shiftId>0) {
                try {
                	allShifts[shiftId].deleteMaps();
                    em.delete(allShifts[shiftId]);
                    allShifts[shiftId].save();
                }
                catch (SQLException e)
                {
                    e.printStackTrace();
                }
            }
            // if there is no shift, there is no schedule, so nothing needs to be cleared
            JOptionPane.showMessageDialog(this, "Shift cleared!");
        }
        // adding
        else {
            // add to already existing shift
            if (shiftId>0) {
                try {
                    allShifts[shiftId].addStaffMember(selStaff);
                    allShifts[shiftId].save();
                }
                catch (SQLException e)
                {
                    e.printStackTrace();
                }
            }
            // create new shift
            else {
                try
                {
                    newShift = em.create(Shift.class);
                    newShift.setDate(Integer.parseInt(date));
                    newShift.setType(types[amPm]);
                    newShift.addStaffMember(selStaff);
                    newShift.save();
                }
                catch (SQLException e)
                {
                    e.printStackTrace();
                }
            }
            JOptionPane.showMessageDialog(this, list.getSelectedValue()+" added on "+ date+"!");
        }
        buildCalendar(jComboBox1.getSelectedIndex(),jComboBox2.getSelectedIndex()+2008);
        jList2.setEnabled(true);
        jList8.setEnabled(true);
        jList9.setEnabled(true);
        jList10.setEnabled(true);		
    }

    public void populateStaff() {
    	DefaultListModel mdlKit = new DefaultListModel();
    	DefaultListModel mdlDin = new DefaultListModel();
    	DefaultListModel mdlAdm = new DefaultListModel();
    	DefaultListModel mdlMain = new DefaultListModel();
    	try {
    		staff = em.find(StaffMember.class);    
    	}
    	catch (SQLException e)
    	{
		    e.printStackTrace();
    	}
    	for (int a=0; a<staff.length; a++) {
    		if (staff[a].getPosition().getID()==1) {
    			mdlKit.addElement(staff[a].getLastName());
    		}
    		else if (staff[a].getPosition().getID()==2) {
    			mdlDin.addElement(staff[a].getLastName());
    		}
    		else if (staff[a].getPosition().getID()==4) {
    			mdlAdm.addElement(staff[a].getLastName());
    		}
    		else {
    			mdlMain.addElement(staff[a].getLastName());
    		}
    	}
    	jList2.setModel(mdlKit);
    	jList8.setModel(mdlDin);
    	jList9.setModel(mdlAdm);
    	jList10.setModel(mdlMain);
    }

    public String getCalDate(int boxDay) {
            int sdYear;
            int sdMonth;
            int sdDay;
            String sdYear_s;
            String sdMonth_s;
            String sdDay_s;
        //date in yyyymmdd
           sdYear = jComboBox2.getSelectedIndex()+2008;
           sdMonth = jComboBox1.getSelectedIndex()+1;
           sdDay = boxDay;
           if (sdMonth<10) {
               sdMonth_s = "0"+sdMonth;
           }
           else sdMonth_s = ""+sdMonth;
           if (sdDay<10) {
               sdDay_s = "0"+sdDay;
           }
           else sdDay_s = ""+sdDay;
           sdYear_s = ""+sdYear;
           return sdYear_s + sdMonth_s + sdDay_s;
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLayeredPane ReservePanel;
    private javax.swing.JLayeredPane ReviewPanel;
    private javax.swing.JLayeredPane ServePanel;
    private javax.swing.JLayeredPane StaffPanel;
    private javax.swing.JLayeredPane StockPanel;
    private javax.swing.JLayeredPane StockPanel1;
    private javax.swing.JTextField addCategoryTextField;
    private javax.swing.JLabel am;
    private javax.swing.JLabel am1;
    private javax.swing.JLabel am10;
    private javax.swing.JLabel am11;
    private javax.swing.JLabel am12;
    private javax.swing.JLabel am13;
    private javax.swing.JLabel am14;
    private javax.swing.JLabel am15;
    private javax.swing.JLabel am16;
    private javax.swing.JLabel am17;
    private javax.swing.JLabel am18;
    private javax.swing.JLabel am19;
    private javax.swing.JLabel am2;
    private javax.swing.JLabel am20;
    private javax.swing.JLabel am22;
    private javax.swing.JLabel am23;
    private javax.swing.JLabel am24;
    private javax.swing.JLabel am25;
    private javax.swing.JLabel am26;
    private javax.swing.JLabel am27;
    private javax.swing.JLabel am28;
    private javax.swing.JLabel am3;
    private javax.swing.JLabel am4;
    private javax.swing.JLabel am5;
    private javax.swing.JLabel am6;
    private javax.swing.JLabel am7;
    private javax.swing.JLabel am8;
    private javax.swing.JLabel am9;
    private javax.swing.JButton btnCreateStaff;
    private javax.swing.JButton btnDeleteStaff;
    private javax.swing.JButton btnSaveStaff;
    private javax.swing.JButton btnStaffClear;
    private javax.swing.JPanel calendar;
    private javax.swing.JComboBox cmbEditStaffPos;
    private javax.swing.JComboBox cmbNewStaffPos;
    private javax.swing.JComboBox cmbStaff;
    private javax.swing.JButton cmdBuildCalendar1;
    private javax.swing.JButton cmdBuildCalendar2;
    private javax.swing.JLabel cmdOrder;
    private javax.swing.JLabel cmdOrder1;
    private javax.swing.JLabel cmdOrder2;
    private javax.swing.JLabel cmdOrder3;
    private javax.swing.JLabel cmdSeat;
    private javax.swing.JPanel day;
    private javax.swing.JPanel day1;
    private javax.swing.JPanel day10;
    private javax.swing.JPanel day11;
    private javax.swing.JPanel day12;
    private javax.swing.JPanel day13;
    private javax.swing.JPanel day14;
    private javax.swing.JPanel day15;
    private javax.swing.JPanel day16;
    private javax.swing.JPanel day17;
    private javax.swing.JPanel day18;
    private javax.swing.JPanel day19;
    private javax.swing.JPanel day2;
    private javax.swing.JPanel day20;
    private javax.swing.JPanel day22;
    private javax.swing.JPanel day23;
    private javax.swing.JPanel day24;
    private javax.swing.JPanel day25;
    private javax.swing.JPanel day26;
    private javax.swing.JPanel day27;
    private javax.swing.JPanel day28;
    private javax.swing.JPanel day3;
    private javax.swing.JPanel day4;
    private javax.swing.JPanel day5;
    private javax.swing.JPanel day6;
    private javax.swing.JPanel day7;
    private javax.swing.JPanel day8;
    private javax.swing.JPanel day9;
    private javax.swing.JInternalFrame frmAdjustStock;
    private javax.swing.JInternalFrame frmCreateNewStaff;
    private javax.swing.JInternalFrame frmEditCurrentStaff;
    private javax.swing.JInternalFrame frmEditMenuItem;
    private javax.swing.JInternalFrame frmEditReservation;
    private javax.swing.JInternalFrame frmEditStockEntry;
    private javax.swing.JInternalFrame frmFoodIncome;
    private javax.swing.JInternalFrame frmMenuCategories;
    private javax.swing.JInternalFrame frmNetIncome;
    private javax.swing.JInternalFrame frmNewMenuItem;
    private javax.swing.JInternalFrame frmNewReservation;
    private javax.swing.JInternalFrame frmNewStockEntry;
    private javax.swing.JInternalFrame frmStaffExpenses;
    private javax.swing.JInternalFrame frmStockExpenses;
    private javax.swing.JInternalFrame frmViewInventoryList;
    private javax.swing.JInternalFrame frmViewMenu;
    private javax.swing.JInternalFrame frmViewReservations;
    private javax.swing.JInternalFrame frmViewStaffRoster;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton9;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton22;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButtonClearNewRes;
    private javax.swing.JButton jButtonEditResDelete;
    private javax.swing.JButton jButtonEditResSaveChanges;
    private javax.swing.JButton jButtonFindTable;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox10;
    private javax.swing.JComboBox jComboBox11;
    private javax.swing.JComboBox jComboBox12;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JComboBox jComboBox5;
    private javax.swing.JComboBox jComboBox7;
    private javax.swing.JComboBox jComboBoxResName;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel81;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel86;
    private javax.swing.JLabel jLabelEditResDate;
    private javax.swing.JLabel jLabelEditResName;
    private javax.swing.JLabel jLabelEditResName1;
    private javax.swing.JLabel jLabelEditResNotes;
    private javax.swing.JLabel jLabelEditResNumPeople;
    private javax.swing.JLabel jLabelEditResTime;
    private javax.swing.JLabel jLabelResName;
    private javax.swing.JLabel jLabelResName1;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JList jList1;
    private javax.swing.JList jList10;
    private javax.swing.JList jList2;
    private javax.swing.JList jList3;
    private javax.swing.JList jList4;
    private javax.swing.JList jList5;
    private javax.swing.JList jList6;
    private javax.swing.JList jList7;
    private javax.swing.JList jList8;
    private javax.swing.JList jList9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane18;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator10;
    private javax.swing.JSeparator jSeparator11;
    private javax.swing.JSeparator jSeparator12;
    private javax.swing.JSeparator jSeparator13;
    private javax.swing.JSeparator jSeparator14;
    private javax.swing.JSeparator jSeparator15;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JSeparator jSeparator7;
    private javax.swing.JSeparator jSeparator8;
    private javax.swing.JSeparator jSeparator9;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JTextField jTextField17;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jTextField23;
    private javax.swing.JTextField jTextField24;
    private javax.swing.JTextField jTextField26;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextField28;
    private javax.swing.JTextField jTextField47;
    private javax.swing.JTextField jTextField48;
    private javax.swing.JTextField jTextField49;
    private javax.swing.JTextField jTextField50;
    private javax.swing.JTextField jTextField53;
    private javax.swing.JTextField jTextField54;
    private javax.swing.JTextField jTextField55;
    private javax.swing.JTextField jTextField56;
    private javax.swing.JTextField jTextField57;
    private javax.swing.JTextField jTextField58;
    private javax.swing.JTextField jTextFieldEditResDate;
    private javax.swing.JTextField jTextFieldEditResNotes;
    private javax.swing.JTextField jTextFieldEditResNotes1;
    private javax.swing.JTextField jTextFieldEditResNumPeople;
    private javax.swing.JTextField jTextFieldEditResTime;
    private javax.swing.JTextField jTextFieldNewResDate;
    private javax.swing.JTextField jTextFieldNewResTime;
    private javax.swing.JTextField jTextFieldNumPeople;
    private javax.swing.JTextField jTextFieldResName;
    private javax.swing.JTextField jTextFieldResName1;
    private javax.swing.JTextField jTextFieldResNotes;
    private javax.swing.JTextPane jTextPane1;
    private javax.swing.JLabel lblAddMenuItem;
    private javax.swing.JLabel lblAdjustStock;
    private javax.swing.JLabel lblCreateNewStaff;
    private javax.swing.JLabel lblDate;
    private javax.swing.JLabel lblEditCurrentStaff;
    private javax.swing.JLabel lblEditMenuItem;
    private javax.swing.JLabel lblEditReservation;
    private javax.swing.JLabel lblEditStockEntry;
    private javax.swing.JLabel lblEditStockEntry1;
    private javax.swing.JLabel lblFoodIncome;
    private javax.swing.JLabel lblNetIncome;
    private javax.swing.JLabel lblNewReservation;
    private javax.swing.JLabel lblNewStockEntry;
    private javax.swing.JLabel lblPlan1;
    private javax.swing.JLabel lblPlan2;
    private javax.swing.JLabel lblPlan3;
    private javax.swing.JLabel lblPlan4;
    private javax.swing.JLabel lblPlan5;
    private javax.swing.JLabel lblPlan6;
    private javax.swing.JLabel lblStaff;
    private javax.swing.JLabel lblStaffExpenses;
    private javax.swing.JLabel lblStatus;
    private javax.swing.JLabel lblStockExpenses;
    private javax.swing.JLabel lblViewInventoryList;
    private javax.swing.JLabel lblViewInventoryList1;
    private javax.swing.JLabel lblViewReservations;
    private javax.swing.JLabel lblViewStaffRoster;
    private javax.swing.JLabel lblWaiterName;
    private javax.swing.JLabel lblWaiterSeats;
    private javax.swing.JLabel lblWaiterTables;
    private javax.swing.JLabel lblWaiterTime;
    private javax.swing.JList lstDelete;
    private javax.swing.JList lstOrderItems;
    private javax.swing.JLabel number;
    private javax.swing.JLabel number1;
    private javax.swing.JLabel number10;
    private javax.swing.JLabel number11;
    private javax.swing.JLabel number12;
    private javax.swing.JLabel number13;
    private javax.swing.JLabel number14;
    private javax.swing.JLabel number15;
    private javax.swing.JLabel number16;
    private javax.swing.JLabel number17;
    private javax.swing.JLabel number18;
    private javax.swing.JLabel number19;
    private javax.swing.JLabel number2;
    private javax.swing.JLabel number20;
    private javax.swing.JLabel number22;
    private javax.swing.JLabel number23;
    private javax.swing.JLabel number24;
    private javax.swing.JLabel number25;
    private javax.swing.JLabel number26;
    private javax.swing.JLabel number27;
    private javax.swing.JLabel number28;
    private javax.swing.JLabel number3;
    private javax.swing.JLabel number4;
    private javax.swing.JLabel number5;
    private javax.swing.JLabel number6;
    private javax.swing.JLabel number7;
    private javax.swing.JLabel number8;
    private javax.swing.JLabel number9;
    private javax.swing.JPanel panelMenu;
    private javax.swing.JPanel panelPlan;
    private javax.swing.JPanel panelReserve;
    private javax.swing.JPanel panelReview;
    private javax.swing.JPanel panelSchedule;
    private javax.swing.JPanel panelServe;
    private javax.swing.JPanel panelStaff;
    private javax.swing.JPanel panelStock;
    private javax.swing.JLabel pm;
    private javax.swing.JLabel pm1;
    private javax.swing.JLabel pm10;
    private javax.swing.JLabel pm11;
    private javax.swing.JLabel pm12;
    private javax.swing.JLabel pm13;
    private javax.swing.JLabel pm14;
    private javax.swing.JLabel pm15;
    private javax.swing.JLabel pm16;
    private javax.swing.JLabel pm17;
    private javax.swing.JLabel pm18;
    private javax.swing.JLabel pm19;
    private javax.swing.JLabel pm2;
    private javax.swing.JLabel pm20;
    private javax.swing.JLabel pm22;
    private javax.swing.JLabel pm23;
    private javax.swing.JLabel pm24;
    private javax.swing.JLabel pm25;
    private javax.swing.JLabel pm26;
    private javax.swing.JLabel pm27;
    private javax.swing.JLabel pm28;
    private javax.swing.JLabel pm3;
    private javax.swing.JLabel pm4;
    private javax.swing.JLabel pm5;
    private javax.swing.JLabel pm6;
    private javax.swing.JLabel pm7;
    private javax.swing.JLabel pm8;
    private javax.swing.JLabel pm9;
    private javax.swing.JLayeredPane reviewPanel;
    private javax.swing.JTabbedPane tabSet;
    private javax.swing.JTable tblStaffRoster;
    private javax.swing.JTable tblFoodIncome;
    private javax.swing.JTable tblNetIncome;
    private javax.swing.JTable tblStaffExpenses;
    private javax.swing.JTable tblStockExpenses;
    private javax.swing.JToolBar toolbar;
    private javax.swing.JTextField txtEditStaffAddress;
    private javax.swing.JTextField txtEditStaffCents;
    private javax.swing.JTextField txtEditStaffDollars;
    private javax.swing.JTextField txtEditStaffEmail;
    private javax.swing.JTextField txtEditStaffNotes;
    private javax.swing.JTextField txtEditStaffPhone;
    private javax.swing.JTextField txtNewStaffAddress;
    private javax.swing.JTextField txtNewStaffCents;
    private javax.swing.JTextField txtNewStaffDollars;
    private javax.swing.JTextField txtNewStaffEmail;
    private javax.swing.JTextField txtNewStaffFirstName;
    private javax.swing.JTextField txtNewStaffLastName;
    private javax.swing.JTextField txtNewStaffNotes;
    private javax.swing.JTextField txtNewStaffPhone;
    // End of variables declaration//GEN-END:variables

    //**********************************************************************
    // Inner Classes
    //**********************************************************************

    private class MyDateListener
          implements DateListener
    {

    public void
    dateChanged(
        DateEvent e)
    {
        Calendar c = e.getSelectedDate();
        if (c != null) {
    	System.out.println(c.getTime());
        }
        else {
    	System.out.println("No time selected.");
        }
    }

    }

    //**********************************************************************
    // End Inner Classes
    //**********************************************************************


}
